Hack Forums
[Shell] echo alias prints space between env variable and first argument - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] echo alias prints space between env variable and first argument (/showthread.php?tid=6049506)



echo alias prints space between env variable and first argument - Nulla Misericordia - Feb 14, 2020

I have a weird problem..... Im configuring my arch setup and one of my aliases isnt working.....

alias es='echo $SCRIPTDEST/$1'

For some reason it prints a space between $SCRIPTDEST/ and $1, ruining everything. How do I fix this?

Also $SCRIPTDEST is just the location of all my scripts.