On Tue, Aug 03, 2010 at 02:55:36PM -0600, Eric Blake wrote:
>
> And meanwhile, I found a ksh93 parsing bug (don't know where to report
> that):
>
> $ ksh -c 'a(){ echo hi; }; a'
> ksh: syntax error at line 1: `}' unexpected
> $ ksh -c 'a() { echo hi; }; a'
> hi
> $ bash -c 'a(){ echo hi; }; a'
> hi
> $ /bin/sh -c 'a(){ echo hi; }; a'
> hi
>
> ksh is the only shell that requires a space between the ) and {, even
> though the ) is a metacharacter and should not need trailing space (even
> Solaris /bin/sh got that right).
Just talk with Michal Hlavinka <[email protected]>
for this as he uses the ksh/ast developers mailing list.
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr