Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 ?

share|improve this question
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.