On Sat, Jan 05, 2002 at 12:32:25AM -0800, Jos Backus wrote:
>     case "$foo" in
>     esac

>         case word in
>             [(] pattern1) compound-list;;
>             [[(] pattern[ | pattern] ... ) compound-list;;] ...
>             [[(] pattern[ | pattern] ... ) compound-list]
>         esac

Never mind, Alexey V. Neyman pointed out that there are no square brackets
around the ``[(] pattern1) compound-list;;'' so at least one pattern needs to
be present. zsh and bash are simply more forgivig in this case, presumably
because there is no harm in doing so. But since empty case statements are
mostly useless the standard behavior that flags them makes more sense.

-- 
Jos Backus                 _/  _/_/_/        Santa Clara, CA
                          _/  _/   _/
                         _/  _/_/_/             
                    _/  _/  _/    _/
[EMAIL PROTECTED]     _/_/   _/_/_/            use Std::Disclaimer;

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to