[BusyBox] Patch for HUSH conditional bug
Wolfgang Denk
wd at denx.de
Mon Apr 12 12:29:12 UTC 2004
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
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
The Wright Bothers weren't the first to fly. They were just the first
not to crash.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 635 bytes
Desc: patch
Url : http://lists.busybox.net/pipermail/busybox/attachments/20040412/b736c92d/attachment.obj
More information about the busybox
mailing list