[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Add "nice -10" to /etc/crontab run-parts commands?



Tommi Virtanen <tv@debian.org> writes:

>         false && echo foo will always cause bash to exit.
>         If there is something else in the script, it will not be
>         executed, even if the onacpow test would only _seem_ to
>         apply to that one line. This is in this case unintended 
>         behaviour.

$ cat test.sh 
#!/bin/bash
set -e
false && echo foo
echo bar
$ ./test.sh 
bar
$ 

Note that the command "echo bar" _was_ executed.

>         End of thread?

No. :-)

	- Ruud de Rooij.
-- 
ruud de rooij | ruud@ruud.org | http://ruud.org


Reply to: