> ./LAST/50-misc:error=0 ; trap "error=$((error|1))" ERR > ./FAIBASE/10-misc:error=0 ; trap "error=$((error|1))" ERR > ./FAIBASE/30-interface:error=0 ; trap "error=$((error|1))" ERR > ./GRUB/10-setup:error=0 ; trap "error=$((error|1))" ERR > > ===== shell: LAST/50-misc ===== > ./LAST/50-misc: 5: arith: syntax error: "error|1" > LAST/50-misc FAILED with exit code 2. > > > The simple fix would be to make those scripts explicitly use /bin/bash, > though > I would prefer if the scripts could be fixed to also work with dash, which is > smaller and therefore much faster (to start) than bash and which is the > default shell on debian-edu and ubuntu (and hopefully lenny too). >
Wouldn't a simple error=0 ; trap "error=1" ERR do just the same? IMHO $error wouldn't ever have any other value than 0 or one 1 (correct me if I'm wrong, i.e. somehow magically $error is set to another value...), thus we either do error=$((0|1)) or error=$((1|1)) and obtain error == 1 in both cases... Best, Michael
pgpigaptbikp1.pgp
Description: PGP signature