龙海涛 wrote:
> i want to store the current working dir to a variable, i write

The most common way to save the present working directory to a
variable would be to use the $(...) form.

  test=$(pwd)
  echo $test

Try that.

Bob


Reply via email to