On Lu, 19 oct 20, 20:04:07, David Christensen wrote: > On 2020-10-19 14:12, Tixy wrote: > > On Mon, 2020-10-19 at 15:16 -0400, Greg Wooledge wrote: > > > > https://mywiki.wooledge.org/BashFAQ/105 > > > > NOOOOOOOOOOO!!!! ;-) > > > > Excuse me while I go grep 'set -e' -R ... > > > 2020-10-19 20:01:44 dpchrist@tinkywinky ~ > $ cat /etc/debian_version ; uname -a > 9.13 > Linux tinkywinky 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64 > GNU/Linux > > 2020-10-19 20:02:17 dpchrist@tinkywinky ~ > $ IFS=: && for p in $PATH; do egrep -r 'set (-e|-o errexit)' $p; done
[snipped various scripts from /usr/bin] It's much "worse" than that, even the Debian Policy Manual strongly recommends using 'set -e' in package maintainer scripts. https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html While the package maintainer scripts are arguably a somewhat special case, the rough consensus in Debian appears to be that 'set -e' should always be used in shell scripts (as the Debian Policy suggests). See also the thread starting here: https://lists.debian.org/debian-devel/2018/07/msg00199.html Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser
signature.asc
Description: PGP signature