小编Hac*_*chi的帖子

尽管在 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 中是否有任何特殊设置可能导致这种错误的路径处理?

linux bash shell path

4
推荐指数
1
解决办法
2699
查看次数

标签 统计

bash ×1

linux ×1

path ×1

shell ×1