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

Marc Weber marco-oweber at gmx.de
Wed Nov 19 18:18:31 CET 2008


>   `eval'
>             eval [ARGUMENTS]
>        The arguments are concatenated together into a single command,
>        which is then read and executed, and its exit status returned as
>        the exit status of `eval'.  If there are no arguments or only
>        empty arguments, the return status is zero.
> 
> Doesn't it work as documented for you?

Sorry, bad example, try this:

  eval "foo while; { foo }"; echo $?

(either bash or sh)
Excatly that has happened to me more than once.
It hase been bad in this case because it was the test which wasn't run..
And then you wait till all modules and libs have been compiled just to
recognize that nothing works as expected.

cu
Marc



More information about the nix-dev mailing list