Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14914 > unrolled thread
| Started by | Martijn Dekker <martijn@inlv.org> |
|---|---|
| First post | 2018-12-14 11:46 +0000 |
| Last post | 2018-12-14 11:46 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
'eval' exit behaviour in posix mode Martijn Dekker <martijn@inlv.org> - 2018-12-14 11:46 +0000
| From | Martijn Dekker <martijn@inlv.org> |
|---|---|
| Date | 2018-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.
Back to top | Article view | gnu.bash.bug
csiph-web