I have used mkalias suggested here http://superuser.com/questions/114546/how-to-store-a-unix-alias

by typing

mkalias untar "tar -xvzf"

but it says

-xvzf not found

Why ?

link|improve this question
feedback

1 Answer

up vote 4 down vote accepted

The function posted in that other answer has a bug. The line

alias $1=$2

should read

alias $1="$2"

The answerer remembered to quote the second argument in the line that inserts the alias into your bashrc, but forgot to quote it when activating the alias for the current session.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown