我有,我有一個別名庫文件:慶典源和別名問題
$ cat mylib.sh
alias mal='ls -l'
$cat test.sh
#!/bin/bash
source mylib.sh
mal
$./test.sh
./test.sh: line 3: mal: command not found
有什麼想法?
我有,我有一個別名庫文件:慶典源和別名問題
$ cat mylib.sh
alias mal='ls -l'
$cat test.sh
#!/bin/bash
source mylib.sh
mal
$./test.sh
./test.sh: line 3: mal: command not found
有什麼想法?
別名通常不會擴展到非交互shell –