[PATCH 2/3] hust_test: Add missing PWD variable and improve checking mechanism

Mike Frysinger vapier at gentoo.org
Thu Aug 13 08:17:53 UTC 2009


On Wednesday 12 August 2009 15:24:01 Denys Vlasenko wrote:
> On Wed, Aug 12, 2009 at 3:56 PM, Michal Simek<monstr at monstr.eu> wrote:
> > I am trying to run ltp on hush and runltp use PWD too. It will be better
> > if hush will export PWD variable. I am not script specialist and don't
> > have any statistic but seems to me it is common thing and shell should
> > provide it. What do you think?
>
> hush currently has no support for special variables at all
> (not counting $1, $_ etc). It makes sense to add it,
> but it will take some time.

it doesnt need to be special.  export it when hush starts up like any other 
variable, and then update it whenever someone uses the `cd` builtin.  side 
note -- setting PWD is the same thing as doing `cd`.  so `PWD=/` and `cd /` 
are equivalent.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090813/66e7e578/attachment.pgp>


More information about the busybox mailing list