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

Michael Meissner meissner at osf.org
Tue Jun 12 01:53:42 AEST 1990


In article <KAUL.90Jun10153350 at icarus.eng.ohio-state.edu>
kaul at icarus.eng.ohio-state.edu (Rich Kaul) writes:

| In article <MEISSNER.90Jun10141529 at curley.osf.org> meissner at osf.org (Michael Meissner) writes:
| | In article <1990Jun9.174744.16051 at cbnewse.att.com> Dan_Jacobson at ATT.COM writes:
| | | Is there any Bourne (or "Bourne compatible") shell version that requires
| | | me to put the last ";;" right before the "esac"?
| |
| | The Free Software Foundation shell Bash 1.04 requires it.  I dunno
| | about 1.05 (I'm waiting for 1.06).
| 
| Bash 1.05 auto inserts the ;; as you can see:
| 
| Script started on Sun Jun 10 15:30:14 1990
| bash$ case $PATH in
| bash>NOTHING) echo this;;
| bash>*) echo that
| bash>esac
| Inserted `;;'
| that
| bash$ exit
| script done on Sun Jun 10 15:30:46 1990

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.
--
Michael Meissner	email: meissner at osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA

Catproof is an oxymoron, Childproof is nearly so



More information about the Comp.unix.questions mailing list