On Fri, Jan 04, 2002 at 09:26:46PM -0800, Justin Erenkrantz wrote:
> Yeah, this seems to be a bug in autoconf because this is not
> portable /bin/sh code. IIRC, all cases must have an action item.
OK.
> Are you using 2.52? I can't see any way around this besides
> getting the autoconf people to fix this.
Yes, I am using 2.52.
> HTH. From my cursory examination of 2.52f, it seems like
> it has the same problem. But, my /bin/sh is happy with the
> empty case statements. So, I can't reproduce this. -- justin
zsh and bash have no problems with them either, both manpages list the
pattern) list;; parts as optional, unlike FreeBSD's sh. Is your sh bash by any
chance?
POSIX 1003.1 says:
The format for the case construct is as follows:
case word in
[(] pattern1) compound-list;;
[[(] pattern[ | pattern] ... ) compound-list;;] ...
[[(] pattern[ | pattern] ... ) compound-list]
esac
The ";;" is optional for the last compound-list.
I'll notify the FreeBSD crowd.
Thanks Justin.
--
Jos Backus _/ _/_/_/ Santa Clara, CA
_/ _/ _/
_/ _/_/_/
_/ _/ _/ _/
[EMAIL PROTECTED] _/_/ _/_/_/ use Std::Disclaimer;