0

in ~/.bashrc /etc/bashrc, I write

alias multiscp='/root/deploy/multiscp.sh'

and in command line, I could use multiscp like a command multiscp xxx However, in a shell script, multiscp is not recognized, even I put source ~/.bashrc in shell script, still not working.

I know that shell script runs in a non-login shell, and I also think non-login shell should have bashrc. source ~/.bashrc works on environmental variables, but not alias. Is it because alias is special?

Tiina
  • 145
  • 8

0 Answers0