On Thu, 04 Apr 2013, Julien Cristau wrote: > "The shell does not exit if the command that fails is [...] part of any > command executed in a && or || list except the command following the > final && or || [...]"
Oh, I stand corrected then. And it looks like dash is the same (so it's not specific to bash either): -e errexit If not interactive, exit immediately if any untested command fails. The exit status of a command is considered to be explicitly tested if the command is used to control an if, elif, while, or until; or if the com‐ mand is the left hand operand of an “&&” or “||” operator. I have been mislead by the usage of such construct in debian/rules where the non-null exit code matters (and where "[ -e Makefile ] && $(MAKE) clean" is a real bug). Cheers, -- Raphaël Hertzog ◈ Debian Developer Get the Debian Administrator's Handbook: → http://debian-handbook.info/get/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org