bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: maybe some of these "case" reactions are no-no's


From: Andreas Schwab
Subject: Re: maybe some of these "case" reactions are no-no's
Date: Wed, 10 Apr 2002 11:48:49 +0200
User-agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux)

prj@po.cwru.edu (Paul Jarc) writes:

|> Dan Jacobson <jidanni@deadspam.com> wrote:
|> > $ case a in b)esac #odd.  what about ;;?
|> 
|> Looks like that ought to fail.

This is correct, the ;; is optional before esac (see case_list_ns in the
shell grammar of POSIX.1-2001).

|> > $ case a in b)date ;esac
|> > $ case b in b)date ;esac
|> > Tue 04  9 21:12:29 CST 2002
|> 
|> Looks like that ought to fail.

Same as above.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]