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


Groups > gnu.bash.bug > #14946

Re: 'eval' exit behaviour in posix mode

Path csiph.com!goblin3!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Martijn Dekker <martijn@inlv.org>
Newsgroups gnu.bash.bug
Subject Re: 'eval' exit behaviour in posix mode
Date Mon, 24 Dec 2018 00:42:04 +0000
Lines 15
Approved bug-bash@gnu.org
Message-ID <mailman.6231.1545612133.1284.bug-bash@gnu.org> (permalink)
References <dbf54249-2563-0258-3e91-2e7b314c8fb7@inlv.org> <229b496f-7fce-a270-b4e3-85dc10b662af@case.edu>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1545612134 12477 208.118.235.17 (24 Dec 2018 00:42:14 GMT)
X-Complaints-To action@cs.stanford.edu
To Bug reports for the GNU Bourne Again SHell <bug-bash@gnu.org>
Envelope-to bug-bash@gnu.org
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
In-Reply-To <229b496f-7fce-a270-b4e3-85dc10b662af@case.edu>
Content-Language en-GB
X-detected-operating-system by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From 37.59.109.123
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:14946

Show key headers only | View raw


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.

- M.

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


Thread

Re: 'eval' exit behaviour in posix mode Martijn Dekker <martijn@inlv.org> - 2018-12-24 00:42 +0000

csiph-web