Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14955
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: 'eval' exit behaviour in posix mode |
| Date | 2018-12-26 11:26 -0500 |
| Organization | ITS, Case Western Reserve University |
| Message-ID | <mailman.6315.1545841575.1284.bug-bash@gnu.org> (permalink) |
| References | <dbf54249-2563-0258-3e91-2e7b314c8fb7@inlv.org> <229b496f-7fce-a270-b4e3-85dc10b662af@case.edu> <b644b364-3c3f-81df-28f3-d1e4caa25b47@inlv.org> |
On 12/23/18 7:42 PM, Martijn Dekker wrote: > Op 14-12-18 om 14:29 schreef Chet Ramey: >> On 12/14/18 6:46 AM, Martijn Dekker wrote: >>> 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. >> >> Well, not quite. It's the specific case of an unexpected end of file. ksh93 >> doesn't exit, either, but it's probably the right thing to do, and the >> right thing for backwards compatibility. > > But now it exits on an unexpected EOF (or other syntax error) in 'command > eval' as well, which it shouldn't. Yes, that's true in posix mode. Interestingly, no other shell I tested (quickly) honors the special status of the command builtin here. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: 'eval' exit behaviour in posix mode Chet Ramey <chet.ramey@case.edu> - 2018-12-26 11:26 -0500
csiph-web