Re: Freeze exception request for mythtv-status
* Julien Cristau [Mon, 17 Nov 2008 01:20:23 +0100]:
> > [ -f /var/run/motd ] || touch /var/run/motd
> > [ -f /var/run/motd.orig ] || cp /var/run/motd /var/run/motd.orig
> FWIW, set -e won't abort the script with the above code (well, unless
> touch or cp fail). From dash(1):
> -e errexit If not interactive, exit immediately if any
> untested command fails. The exit status of a com‐
> mand is considered to be explicitly tested if the
> command is used to control an if, elif, while, or
> until; or if the command is the left hand operand
> of an “&&” or “||” operator.
Ooh. Thank you, Julien. Seems I inherited this belief from make
behavior.
Cheers,
--
Adeodato Simó dato at net.com.org.es
Debian Developer adeodato at debian.org
Listening to: Dar Williams - What Do You Love More Than Love
Reply to: