这是我的脚本:
#!/bin/bash hd='pwd' cd $hd
当我尝试运行它时,它失败了:
line 3: cd: $'pwd\r\r': No such file or directory
到底是怎么回事?
command-line bash scripts
bash ×1
command-line ×1
scripts ×1