Path: utzoo!attcan!uunet!samsung!usc!snorkelwacker!paperboy!meissner From: meissner@osf.org (Michael Meissner) Newsgroups: comp.unix.questions Subject: Re: sh: case .... ==> ;; esac <== Message-ID: Date: 11 Jun 90 15:53:42 GMT References: <1990Jun9.174744.16051@cbnewse.att.com> Sender: news@OSF.ORG Organization: Open Software Foundation Lines: 31 In-reply-to: kaul@icarus.eng.ohio-state.edu's message of 10 Jun 90 19:33:50 GMT In article kaul@icarus.eng.ohio-state.edu (Rich Kaul) writes: | In article meissner@osf.org (Michael Meissner) writes: | | In article <1990Jun9.174744.16051@cbnewse.att.com> Dan_Jacobson@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@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA Catproof is an oxymoron, Childproof is nearly so