BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001142 [BusyBox] Other minor always 01-04-07 14:10 02-14-08 07:02
Reporter madscientist View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.2.x
Summary 0001142: 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! :)
Additional Information CONFIG_FEATURE_SH_IS_ASH=y
# CONFIG_FEATURE_SH_IS_HUSH is not set
# CONFIG_FEATURE_SH_IS_LASH is not set
# CONFIG_FEATURE_SH_IS_MSH is not set
# CONFIG_FEATURE_SH_IS_NONE is not set
CONFIG_ASH=y

CONFIG_ASH_JOB_CONTROL=y
# CONFIG_ASH_READ_NCHARS is not set
# CONFIG_ASH_READ_TIMEOUT is not set
CONFIG_ASH_ALIAS=y
CONFIG_ASH_MATH_SUPPORT=y
CONFIG_ASH_MATH_SUPPORT_64=y
# CONFIG_ASH_GETOPTS is not set
# CONFIG_ASH_CMDCMD is not set
CONFIG_ASH_BUILTIN_ECHO=y
# CONFIG_ASH_MAIL is not set
CONFIG_ASH_OPTIMIZE_FOR_SIZE=y
# CONFIG_ASH_RANDOM_SUPPORT is not set
# CONFIG_ASH_EXPAND_PRMT is not set
# CONFIG_HUSH is not set
# CONFIG_LASH is not set
# CONFIG_MSH is not set
Attached Files

- Relationships

- Notes
(0004674)
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
02-14-08 07:02 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker