[BusyBox 0001142]: ash: set -o <bogus> causes the shell to exit
bugs at busybox.net
bugs at busybox.net
Thu Feb 14 15:02:03 UTC 2008
The following issue has been CLOSED
======================================================================
http://busybox.net/bugs/view.php?id=1142
======================================================================
Reported By: madscientist
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 1142
Category: Other
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 01-04-2007 14:10 PST
Last Modified: 02-14-2008 07:02 PST
======================================================================
Summary: ash: set -o <bogus> causes the shell to exit
Description:
Hi all; I'm seeing a problem with BusyBox ash; I've tried it with 1.2.2.svn
checked out sometime in early December and it still exists there. If you
use "set -o" with an unknown option, the shell will exit:
$ PATH= ./busybox sh -c 'if set -o barfoo 2>/dev/null; then echo foo;
else echo bar; fi'
$
Instead, the set command should fail but the script should not exit:
$ /bin/sh -c 'if set -o barfoo 2>/dev/null; then echo foo; else echo
bar; fi'
bar
$
FYI, I ran into this because the ldd script provided with glibc uses this
construct, so when I run "ldd someapp" it just silently exits back to my
prompt without actually doing anything. This was very confusing until I
figured out what was going on! :)
======================================================================
----------------------------------------------------------------------
vda - 02-14-08 07:02
----------------------------------------------------------------------
Fixed in revision 21018.
Issue History
Date Modified Username Field Change
======================================================================
01-04-07 14:10 madscientist New Issue
01-04-07 14:10 madscientist Status new => assigned
01-04-07 14:10 madscientist Assigned To => BusyBox
01-04-07 14:27 madscientist Issue Monitored: madscientist
02-14-08 07:02 vda Status assigned => closed
02-14-08 07:02 vda Note Added: 0004674
======================================================================
More information about the busybox-cvs
mailing list