alias not working as expected
Dear fellows,
I am defining an alias like this: Code:
$ bash How to avoid that space after the ":" ? :scratch: thanks in advance, |
Try this one:
Code:
alias test='echo -n prefix:;echo $1' |
Thanks for the try, but your trick is not good. It will work only with echo.
I really need an alias "myalias argument" which is expanded to "command:argument", and what I am getting is "command: argument". If you have any ideas why that space is inserted by the alias expansion, it will be great. |
solved...
from the bash manual:
Quote:
thanks for your time, |
All times are GMT -5. The time now is 03:21 PM. |