I know you weren't exactly asking but… Andreas Beckmann <a...@debian.org> (06/04/2013): > With only one case left, an if is easier and I don't have to check > whether 'case ... *)\nesac' is actually valid syntax ... (without > another ;; before the esac)
http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html says: | The format for the case construct is as follows: | | case word in | [(]pattern1) compound-list;; | [[(]pattern[ | pattern] ... ) compound-list;;] ... | [[(]pattern[ | pattern] ... ) compound-list] | | | esac | | The ";;" is optional for the last compound-list. Mraw, KiBi.
signature.asc
Description: Digital signature