mirror of
https://git.busybox.net/busybox
synced 2026-01-26 16:17:50 +00:00
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
|
||
|---|---|---|
| .. | ||
| ash.c | ||
| cmdedit.c | ||
| cmdedit.h | ||
| Config.in | ||
| hush.c | ||
| lash.c | ||
| Makefile | ||
| Makefile.in | ||
| msh.c | ||