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


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

Re: 'eval' exit behaviour in posix mode

Started byChet Ramey <chet.ramey@case.edu>
First post2018-12-14 09:29 -0500
Last post2018-12-14 09:29 -0500
Articles 1 — 1 participant

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: 'eval' exit behaviour in posix mode Chet Ramey <chet.ramey@case.edu> - 2018-12-14 09:29 -0500

#14915 — Re: 'eval' exit behaviour in posix mode

FromChet Ramey <chet.ramey@case.edu>
Date2018-12-14 09:29 -0500
SubjectRe: 'eval' exit behaviour in posix mode
Message-ID<mailman.5733.1544797800.1284.bug-bash@gnu.org>
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.

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/

[toc] | [standalone]


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


csiph-web