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

Rich Kaul kaul at icarus.eng.ohio-state.edu
Mon Jun 11 05:33:50 AEST 1990


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
-=-
Rich Kaul                         | "Every man is given the key to the door
kaul at icarus.eng.ohio-state.edu    |  of heaven; unfortunately, the same key
or ...!osu-cis!kaul		  |  opens the door to hell."



More information about the Comp.unix.questions mailing list