[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'eval' exit behaviour in posix mode
From: |
Chet Ramey |
Subject: |
Re: 'eval' exit behaviour in posix mode |
Date: |
Fri, 14 Dec 2018 09:29:41 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 |
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/