[BUG] 'eval' returns 0 on error

Ron Yorston rmy at pobox.com
Mon Jan 2 12:48:32 UTC 2017


Martijn Dekker wrote:
>The issue turns out to be more general than that: on an interactive
>shell, or when invoking a script using Busybox 1.26.0 ash, the exit
>status is 0 on a parsing error as well.

And that's not all.  This also gives the wrong result:

   $ rm -f xxx
   $ eval cat <xxx
   $ echo $?
   0

Patch to follow.

Ron


More information about the busybox mailing list