Subject: bin/9266: /bin/sh broken when pipeline starts with "!"
To: None <gnats-bugs@gnats.netbsd.org>
From: None <boquist@crt.se>
List: netbsd-bugs
Date: 01/21/2000 08:51:36
>Number: 9266
>Category: bin
>Synopsis: "!" first in a pipeline does not negate $? in /bin/sh
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 21 08:50:59 2000
>Last-Modified:
>Originator: Urban Boquist
>Organization:
Carlstedt Research & Technology AB, Sweden
>Release: NetBSD-current 2000-01-17
>Environment:
System: NetBSD iller 1.4P NetBSD 1.4P (ILLER) #0: Fri Jan 21 00:43:42 CET 2000 root@iller:/usr/src/sys/arch/i386/compile/ILLER i386
>Description:
In NetBSD's /bin/sh a "!" first in a pipeline should negate the exit
status of the pipeline, but this is broken in NetBSD-current.
>How-To-Repeat:
Transcript:
# echo | false
# echo $?
1
# ! echo | false
# echo $?
1
>Fix:
Unknown.
>Audit-Trail:
>Unformatted: