On 02.06.2012 14:50, Mario 'BitKoenig' Holbe wrote: > This would, btw., also enable the script to use plain /bin/sh rather > than depending on bash.
As far as I can tell, there is nothing specific to bash about this. Compare sections 2.9.3 and 2.9.4 of the "Shell and Utilities" part of the POSIX.1-2008 standard. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html Both || and { …; } are defined there, so any POSIX shell should work. But that doesn't change the fact that the syntax you propose would be easier to read and maintain. Greetings, Martin
signature.asc
Description: OpenPGP digital signature