[BusyBox 0001142]: ash: set -o <bogus> causes the shell to exit

bugs at busybox.net bugs at busybox.net
Thu Jan 4 22:10:26 UTC 2007


The following issue has been SUBMITTED. 
====================================================================== 
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:                     assigned
====================================================================== 
Date Submitted:             01-04-2007 14:10 PST
Last Modified:              01-04-2007 14:10 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! :)
====================================================================== 

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         
======================================================================




More information about the busybox-cvs mailing list