I was trying to create an alias like this.
alias foo='function bar(){echo "$1:localhost"};bar'
But when I execute foo 123, it shows 123ocalhost, so :l is missing.
I also tried alias foo='function bar(){echo "$1:a"};bar'. Executing foo 123 produces /current_directory/123.
alias foo='function bar(){echo "$1:a"};bar' and executing foo 123 produces 123:b.
So different letters after the colon will have different results. Can someone explain this?