我在处理bash脚本语言时遇到了一些奇怪的问题。 这里是: PWD=${pwd}
# several commands
cd /etc/nginx/sites-enabled/
# more commands
cd $PWD
# I expect that I returning to my directory,
# but $PWD contains current dir - /e
Fabric(Ubuntu 13.04上的版本1.7.0)遇到了一些问题。 考虑一下这个功能: def does_not_work():
with cd('/absolute/folder/one/'):
with prefix('change_path_command'):
with cd('/absolute/folder/two/'):
run('