Can Bash aliases be nested?
Can Bash aliases be nested?
For example if I have a setup like:
alias ll = ls -la
alias llaa = pwd && ll''' Will the second command work, or would I have to set it up in a more verbose manner (like alias llaa = pwd && ls -la)
Should work. Just try it out and see if you get what you want. I tried:
then ran
llaa
and it did what I expected, current directory and the output ofls -al
which is aliased.