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