Re: [BUG] dash hangs on 'eval' syntax error in dot script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Op 10-01-19 om 11:37 schreef Martijn Dekker:
> In a dot script sourced with 'command .' (which is useful to avoid
> exiting if the script doesn't exist), triggering a syntax error in an
> 'eval' in a subshell causes dash to hang at the end of the main script.

In fact, 'eval' doesn't appear related. I can also trigger the bug by
triggering an error in another special builtin:

command . /dev/stdin <<EOF
( set -o foobar ) && echo WOOPS
EOF
echo end

- M.



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux