当我输入以下内容(BASH):
rdesktop -r disk:bacon=~/bacon host
它不扩展到
rdesktop -r disk:bacon=/home/me/bacon host
似乎“磁盘:”部分是可以看到的问题:
$echo bacon=~/bacon disk:bacon=~/bacon bacon=/home/me/bacon disk:bacon=~/bacon
如何使波浪号扩展?
而〜不扩展(它被用作路径的特殊路由),$HOME.
原文链接:https://www.f2er.com/bash/383880.htmlrdesktop -r disk:bacon=$HOME/bacon host
但要注意改变环境的su!