我已经在根目录中创建一堆别名在.bash_profile中上,但那些不working.can任何人能帮助我在做什么错 # .bash_profile
#shopt -s expand_aliases
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific
我使用Mac和我有: $cat .bashrc|grep la
alias la='ls -la'
然后我试图使用它在脚本: $cat ./mytest.sh
#!/bin/bash
la
它运行,并说这是不可能找到啦: ./mytest.sh: line 2: la: command not found
这是为什么?我尝试了Mac和Linux,同样的错误!