alias with switches
Nils Kassube
kassube at gmx.net
Mon Mar 14 15:18:16 UTC 2016
thufir wrote:
> Hi, for some aliases, I use \"foo\" to escape the quotes, so that I
> can pass in a double quoted word.
>
> However, I can't seem to get a switch passed in correctly.
>
>
> alias fjdk = 'ls -alh`
>
>
> just to pick something simple. That doesn't work when I put it
> in .bash_aliases and try "source .bashrc", it just chokes. What's the
> correct way?
Wrong syntax - try
alias fjdk='ls -alh'
instead, i.e. no spaces around the "=". And please notice that I also
corrected the typo - the last character should be "'" and not "`".
Nils
More information about the ubuntu-users
mailing list