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

dysfunctional env?



Hi

I have the following script:
-----------------------------
#!/bin/bash
echo $PWD
-----------------------------
and I try to run it with 

env PWD=/bin script

but it always prints the correct working directory instead of "/bin".
Why?

Thanks

Alec



Reply to: