Why aliases in a non-interactive Bash shell do not work

前端 未结 4 786
青春惊慌失措
青春惊慌失措 2020-11-27 15:27

I am trying to use aliases in a non-interactive bash shell. I have defined my aliases in ~/.bashrc and I have set the variable BASH_ENV=~/startUpFile

4条回答
  •  庸人自扰
    2020-11-27 16:07

    The command shopt -s expand_aliases will allow alias expansion in non-interactive shells.

提交回复
热议问题