busybox/shell
Eric Andersen 99fcd168cc Wolfgang Denk writes:
He,

there is a bug in HUSH's handling of "if" / "elif" commands:

        $  if true
        > then
        > echo 1
        > elif
        > true
        > then
        > echo 2
        > elif
        > true
        > then
        > echo 3
        > else
        > echo 4
        > fi
        1
        2
        3
        $

The same bug exists in all versions of HUSH from BB v0.60.x up to and
including v1.00-pre9. The attached patch fixes this:

        $ if true
        > then
        > echo 1
        > elif
        > true
        > then
        > echo 2
        > elif
        > true
        > then
        > echo 3
        > else
        > echo 4
        > fi
        1
        $



Best regards,

Wolfgang Denk
2004-04-12 21:41:29 +00:00
..
ash.c Peter Milne writes: 2004-04-12 19:12:13 +00:00
cmdedit.c Fix spelling. "sort of" is two words. 2004-04-12 15:03:51 +00:00
cmdedit.h Vodz last_patch_122, Check $PATH at runtime to fix tab completion 2004-01-14 09:34:51 +00:00
Config.in Remove the CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN option. It was sortof 2004-04-07 09:34:27 +00:00
hush.c Wolfgang Denk writes: 2004-04-12 21:41:29 +00:00
lash.c Jamie Guinan writes: 2004-04-12 17:59:24 +00:00
Makefile Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
Makefile.in Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
msh.c Remove the CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN option. It was sortof 2004-04-07 09:34:27 +00:00