1 Apr 2009 01:03
bin/133255: [PATCH] sh: empty line in eval resets $?
Jilles Tjoelker <jilles <at> stack.nl>
2009-03-31 23:03:03 GMT
2009-03-31 23:03:03 GMT
>Number: 133255
>Category: bin
>Synopsis: [PATCH] sh: empty line in eval resets $?
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 31 23:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Jilles Tjoelker
>Release: FreeBSD 7.2-PRERELEASE i386
>Organization:
MCGV Stack
>Environment:
bug seems to be present in -CURRENT also
>Description:
An empty line in the text passed to 'eval' and 'trap' and to the '-c' option
causes sh to forget the exit status of the previous command. 'fc' may be
affected as well. This only happens if the the empty line is at the top
level of the string (not in {}, if and the like).
git sometimes does this, with eval. This may cause a test to succeed when
(Continue reading)
RSS Feed