[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#704849: t-p-u: tucnak2/2.47-2+deb7u1



I know you weren't exactly asking but…

Andreas Beckmann <anbe@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.

Attachment: signature.asc
Description: Digital signature


Reply to: