Answer the question
In order to leave comments, you need to log in
How to understand alias escaping in bash?
In .bashrc
I have a comment before the alias examples:
# Some example alias instructions
# If these are enabled they will be used instead of any instructions
# they may mask. For example, alias rm='rm -i' will mask the rm
# application. To override the alias instruction use a \ before, ie
# \rm will call the real rm not the alias.
man bash
this is not clearly stated. All I found was "A non-quoted backslash '\' is the Bash escape character. It preserves the literal value of the next character that follows, with the exception of newline." Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question