* minor parsing bug in zsh 3.0.8
@ 2001-05-07 14:02 Jens Schweikhardt
2001-05-07 14:20 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Jens Schweikhardt @ 2001-05-07 14:02 UTC (permalink / raw)
To: zsh-workers
hello, world\n
zsh won't parse function definitions with a space between the parentheses:
# foo ( ) { echo foo }
zsh: parse error near `}'
# foo () { echo foo }
# echo $ZSH_VERSION
3.0.8
The draft of the next POSIX spec makes ( and ) in function definitons
separate tokens,
function_definition : fname '(' ')' linebreak function_body
You might want to fix this for proper POSIX conformance. Thanks!
Regards,
Jens
--
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: minor parsing bug in zsh 3.0.8
2001-05-07 14:02 minor parsing bug in zsh 3.0.8 Jens Schweikhardt
@ 2001-05-07 14:20 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2001-05-07 14:20 UTC (permalink / raw)
To: Jens Schweikhardt, zsh-workers
On May 7, 4:02pm, Jens Schweikhardt wrote:
}
} zsh won't parse function definitions with a space between the parentheses:
}
} # foo ( ) { echo foo }
} zsh: parse error near `}'
It will if you `setopt SH_GLOB'. The POSIX rules conflict with zsh's own
globbing rules. There are a number of options one has to set before the
shell will closely emulate POSIX; the easiest way to get them all is to
use the `emulate sh' command.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-07 14:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-07 14:02 minor parsing bug in zsh 3.0.8 Jens Schweikhardt
2001-05-07 14:20 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).