Il giorno Mon, 11 Feb 2008 10:55:04 -0500 Justin Pryzby <[EMAIL PROTECTED]> ha scritto:
> A set -e shell script doesn't terminate if a nonzero return value is a > part of a conditional/test. However in a makefile, the exit status of > the shell can be nonzero even if it was a due to a test "failing", so > you have to use [ ! ] || and not the more readable [ ] &&, since the sh > -c '' will still exit 1. For the same reason, you need to explicitly > exit 0 at the end of some scripts: > > for a > do > [...] > [ ] && foo > done > > # Necessary due to the test > exit 0 Thank you for the clear explanation :) David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
signature.asc
Description: PGP signature