sh: case .... ==> ;; esac <==

Maarten Litmaath maart at cs.vu.nl
Sat Jun 16 07:38:37 AEST 1990


In article <1990Jun15.024859.4097 at usenet.ins.cwru.edu>,
	chet at cwns1.CWRU.EDU (Chet Ramey) writes:
)In article <MEISSNER.90Jun11115342 at curley.osf.org>
)	meissner at osf.org (Michael Meissner) writes:
)
)>| Bash 1.05 auto inserts the ;; as you can see:
)
)>I know it inserts it.  It should not give the error message -- after
)>all, I may be piping stderr to someother program, and the bash is just
)>a subshell.  The error message is bogus.
)
)Said error message will be gone in the next release, I think.

According to POSIX 1003.2 _and_ the V7 Bourne shell + most followups
the final `;;' can be omitted, as it should.
--
 "COBOL is the revenge of some witch burned |Maarten Litmaath @ VU Amsterdam:
   in Salem, [...]"  (Bill Davidsen)  |maart at cs.vu.nl, uunet!cs.vu.nl!maart



More information about the Comp.unix.questions mailing list