Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14914 > unrolled thread

'eval' exit behaviour in posix mode

Started byMartijn Dekker <martijn@inlv.org>
First post2018-12-14 11:46 +0000
Last post2018-12-14 11:46 +0000
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug


Contents

  'eval' exit behaviour in posix mode Martijn Dekker <martijn@inlv.org> - 2018-12-14 11:46 +0000

#14914 — 'eval' exit behaviour in posix mode

FromMartijn Dekker <martijn@inlv.org>
Date2018-12-14 11:46 +0000
Subject'eval' exit behaviour in posix mode
Message-ID<mailman.5728.1544788003.1284.bug-bash@gnu.org>
In current git, 'bash -o posix' no longer exits the shell on a syntax 
error in the argument to the special builtin 'eval'. Bash 4.2-4.4 exit 
as POSIX specifies.

$ bash -o posix -c 'eval "(" || echo woops'
bash: eval: regel 1: syntaxfout: onverwacht bestandseinde
woops

On the other hand, note that 'command eval' should *not* exit. Bash 
4.2-4.4 exit on 'command eval "("' which is also a bug.

Thanks,

- M.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web