[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Env["PWD"], why not?


Le 19/04/2025 à 00:22, Bruce Steers a écrit :
Using PWD env to set working dir is cool but why not obey the global Env[]?

Ie. this works..
Shell "ls" With ["PWD=/usr"] Wait

but this does not..
Env["PWD"] ="/usr"
Shell "ls" Wait

Could Shell and Exec not obey the global Env[] if it's been modified?
then the answer to "can you set the shell working dir?" could be differently, "yes" :)

I cannot imagine it requires much code change. (i could be wrong)

Respects
BruceS


It's an hack that actually should have nothing to do with environment variables. So there is no good reason to extend the logic of that hack.

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: Env["PWD"], why not?Bruce Steers <bsteers4@xxxxxxxxx>
References:
Env["PWD"], why not?Bruce Steers <bsteers4@xxxxxxxxx>