[BusyBox] Problem with shell scripts in ash

Vladimir N. Oleynik dzo at simtreas.ru
Tue Jul 17 01:28:39 UTC 2001


Jeff Gray wrote:
> 
> I've found some troubling behaviour using shell scripts with ash. My
> system had been using an external version of ash 0.2 and I had hoped to
> use all my shell scripts unchanged, but found some unexpected errors.
> The following script works fine with standalone ash, but fails with "3:
> Syntax error: Unterminated quoted string" with Busybox ash.
> 
> #!/bin/sh
> case "$1" in
>         start)
>                 echo "Starting"
>                 ;;
>         stop)
>                 echo "Stopping"
>                 ;;
> esac
> 
> I have defined /bin/sh as a link to /bin/busybox & the system is running
> a 2.2.17 kernel. In Config.h, I have defined BB_SH, BB_FEATURE_ASH &
> BB_FEATURE_BUFFERS_GO_ON_STACK. I've left the options in ash.c
> unchanged. I'm using Busybox init for the system. I've tried
> BB_FEATURE_SH_STANDALONE_SHELL on and off & the problem is the same.
> 
> Can anyone see any errors with the way I'm trying to use it?

Check please with the version ash from CVS. I can not reproduce your test.


--v
vodz





More information about the busybox mailing list