[BusyBox] ash / busybox problems?
Mark Whitley
markw at lineo.com
Fri Mar 2 18:04:07 UTC 2001
On Thu, Mar 01, 2001 at 06:04:56PM -0600, David Douthitt wrote:
> It must be one of the two - I can't imagine what else would cause this:
>
> To generate the symptoms, do the following:
>
> # echo $HOSTNAME
> red
> # H="$HOSTNAME:" && echo $H
> redu:
> # H="$HOSTNAME/" && echo $H
> redu/
> # H="$HOSTNAME+" && echo $H
> red+
> # H=$HOSTNAME/ && echo $H
> red/
> #
I was able to do this using bash and Busybox echo with no problems.
----------------
$ H="$HOSTNAME:" && ./busybox echo $H
shiva:
$ H="$HOSTNAME/" && ./busybox echo $H
shiva/
$ H="$HOSTNAME+" && ./busybox echo $H
shiva+
$ H="$HOSTNAME/" && ./busybox echo $H
shiva/
----------------
I was not able to run the test in Busybox shell because I found another bug.
On Thu, Mar 01, 2001 at 06:58:56PM -0600, David Douthitt wrote:
> The problem I mentioned ALSO shows up here:
>
> # cat - <<!*
> alfa~
> bravo/
> charlie;
> delta+
> !*
> alfa~
> bravo/
> charlie;
> delta+
> # cat test
> #!/bin/sh
>
> cat - <<!*
> alfa~
> bravo/
> charlie;
> delta+
> !*
>
> # ./test
> alfau~
> bravou/
> charlie;
> delta+
> #
>
> This is with ash and busybox cat. Is there an interaction? And yet,
> the last one was using echo and variable assignment - supposedly
> internal to ash.
I ran your test script on my own box and it ran just fine under both bash and
Busybox shell.
----------------
$ cat u-bug.sh
#!/bin/sh
./busybox cat - <<!*
alfa~
bravo/
charlie;
delta+
!*
$ ./u-bug.sh
alfa~
bravo/
charlie;
delta+
$ ./busybox sh
BusyBox v0.50pre (2001.03.02-16:46+0000) Built-in shell (lash)
Enter 'help' for a list of built-in commands.
$ ./u-bug.sh
alfa~
bravo/
charlie;
delta+
----------------
Looks like an ash bug to me.
Mark Whitley
markw at lineo.com
More information about the busybox
mailing list