[Nix-dev] eval $buildPhase and exit code in case of syntax error

Marc Weber marco-oweber at gmx.de
Sun Oct 19 00:24:44 CEST 2008


> It could be done in the stdenv-branch.
> 
> However, this really looks like a bug in bash.  Preferably this would be fixed
> upstream rather than putting in hacks to work around bash bugs.
> 
> 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.
Thanks for the suggestion.
I even got feedback within one day:
They'll try to fix it in the next release. They also told that this is
only a problem in interactive shells.

Marc



More information about the nix-dev mailing list