I'm trying to construct a path using a command-line argument in bash. I added the following line to my .bashrc:
alias hi="echo '/path/to/$1'"
However, this yields:
~$ hi foo
/path/to/ foo
Any idea where the blank after the slash is coming from?
Thanks
Hannes