NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/48356: sh(1): unsetting an undefined variable should not be an error
>Number: 48356
>Category: bin
>Synopsis: sh(1): unsetting an undefined variable should not be an error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 01 02:10:00 +0000 2013
>Originator: YAMAMOTO Takashi
>Release: NetBSD current
>Organization:
>Environment:
>Description:
with /bin/sh,
$ unset HOGE;unset HOGE;echo $?
1
$
susv3 says:
Unsetting a variable or function that was not previously
set shall not be
considered an error and does not cause the shell to abort.
see also:
http://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=c737a2e5641a324d3987750b73928c481a5254a0
>How-To-Repeat:
>Fix:
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index