Ken Young <ken@highwinds.cloud> writes: [..] I am not bash expert (prefer zsh) but as far as I know they are expadnded during interactive session only, not in scripts.
> > $ ./get.sh > > ./get.sh: line 5: k: command not found > https://www.gnu.org/software/bash/manual/bash.html#Aliases --8<---------------cut here---------------start------------->8--- Aliases are not expanded when the shell is not interactive, unless the expand_aliases shell option is set using shopt (see The Shopt Builtin). --8<---------------cut here---------------end--------------->8--- KJ -- http://wolnelektury.pl/wesprzyj/teraz/