zsh-workers
 help / color / mirror / code / Atom feed
* [doogie@brainfood.com: Bug#163237: zsh barfs on valid shell]
@ 2002-10-03 20:43 Clint Adams
  2002-10-04  3:57 ` PATCH " Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Clint Adams @ 2002-10-03 20:43 UTC (permalink / raw)
  To: zsh-workers; +Cc: 163237-forwarded

This happens under emulate -R sh as well.

----- Forwarded message from Adam Heath <doogie@brainfood.com> -----

adam@yakko:~$ for shell in ash bash zsh ksh; do echo -n "$shell:"; $shell -c 'case foo in (foo)echo foo;;(bar)echo bar;;esac';done
ash:foo
bash:foo
zsh:zsh: parse error near `foo'
ksh:foo
adam@yakko:~$ for shell in ash bash zsh ksh; do echo -n "$shell:"; $shell -c 'case foo in (foo) echo foo;;(bar) echo bar;;esac';done
ash:foo
bash:foo
zsh:foo
ksh:foo

http://www.opengroup.org/onlinepubs/007904975/utilities/xcu_chap02.html#tag_02_10_02

Scroll down a bit to the actual grammer(surrounded by <pre>):

The case_item and case_item_ns show that there is no required space(or other
break char) between the ')' and the compound_list.

case_item_ns     :     pattern ')'               linebreak
                 |     pattern ')' compound_list linebreak
                 | '(' pattern ')'               linebreak
                 | '(' pattern ')' compound_list linebreak
                 ;
case_item        :     pattern ')' linebreak     DSEMI linebreak
                 |     pattern ')' compound_list DSEMI linebreak
                 | '(' pattern ')' linebreak     DSEMI linebreak
                 | '(' pattern ')' compound_list DSEMI linebreak



----- End forwarded message -----


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-07 10:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-03 20:43 [doogie@brainfood.com: Bug#163237: zsh barfs on valid shell] Clint Adams
2002-10-04  3:57 ` PATCH " Bart Schaefer
2002-10-07 10:59   ` Peter Stephenson

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).