[BusyBox] lash KEY=VALUE

Erik Andersen andersen at lineo.com
Fri Mar 16 03:33:00 UTC 2001


On Fri Mar 16, 2001 at 02:53:08AM +0100, Andreas Neuhaus wrote:
> again a lash issue (sorry larry ;-):
> 
> / # FOO=bar ls
> -sh: FOO=bar: No such file or directory
> / #
> / # cat asdf
> #!/bin/sh
> FOO=bar
> echo "Hello $FOO"
> / #
> / # ./asdf
> -sh: FOO=bar: No such file or directory
> hello
> / #
> 
> is it a bug or a missing feature? do i always have to use export when using
> variables in shell scripts?

This is a never implemented feature.  No local variables in lash
-- just environment variables.  This will not be fixed, but the
sucessor of lash, named hush, will support _full_ bourne shell
syntax, including local variables.

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the busybox mailing list