On 24.01.2013 17:26, Ansgar Burchardt wrote: > On 01/24/2013 17:01, Michael Biebl wrote: >> a/ the script uses set -e, this means it will it exit with an error if >> a2enmod is missing > > I learned that this is not true: > > ---- > % bash -c 'set -e; false && true; echo Ha.' > Ha. > ---- > > Which I found surprising. But I would suggest to use "if ...; then ...; > fi" anyway. Yeah, seems I have to correct myself. If a failing command is part of a compound statement, the shell doesn't exist immediately. I vaguely remember that I've run into problems with && and set -e, but either my memory doesn't serve me well or it was a different issue back then. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
Description: OpenPGP digital signature