How to define pwd as a variable in Unix shell

Viewed 20228

I tried the following but it didn't work.

dir=$pwd
echo $dir

/bin/env/####/ --id --edition dir- $dir

I want to paste the current working directory into the above script.

2 Answers
Related