Is any alias equivalent to a function, in the sense that each appearance of the alias can be replaced with the function's name, and the function name in each call to the function can be replaced with the alias?
If I am correct, an arbitrary alias is defined in the following form:
alias myalias=blahblahIs the alias defined in the above form always equivalent to a function defined as
myfun () { blahblah $@ }?
If not, what function is the alias equivalent to?
Thanks.
alias test1="echo Hello"test2(){ echo Hello ; }