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


Groups > gnu.bash.bug > #14914

'eval' exit behaviour in posix mode

From Martijn Dekker <martijn@inlv.org>
Newsgroups gnu.bash.bug
Subject 'eval' exit behaviour in posix mode
Date 2018-12-14 11:46 +0000
Message-ID <mailman.5728.1544788003.1284.bug-bash@gnu.org> (permalink)

Show all headers | View raw


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.

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web