Hac*_*chi
4
linux
bash
shell
path
我的 $PATH 设置为很多目录,包括~/bin和~/target/bin
我想执行里面的 script.sh~/target/bin但我收到错误bash: ~/bin/script.sh: No such file or directory
这让我很困惑,因为which找到了正确的目录 ~/target/bin 并且 ~/target/bin/script.sh 执行得很好。
bash 中是否有任何特殊设置可能导致这种错误的路径处理?