[Nix-dev] Re: eval $buildPhase and exit code in case of syntax error
Ludovic Courtès
ludo at gnu.org
Mon Oct 20 00:06:47 CEST 2008
Hi,
Eelco Dolstra <e.dolstra at tudelft.nl>
writes:
> BTW, this isn't the only place where bash silently ignores errors (even with
> "-e" active). For instance, errors from subshells (e.g. "(cd /foo)") are ignored.
Really?
$ ( cd /foo ) ; echo $?
bash: cd: /foo: No such file or directory
1
but...
$ ( cd /foo ; true ) ; echo $?
bash: cd: /foo: No such file or directory
0
Thanks,
Ludo'.
More information about the nix-dev
mailing list