Can the .bash_aliases file accept an alias that is of the form of
I've tried quotes and escaping the character too, but it doesn't seem to work.
Do this :
xb@dnxb:~/tmp$ shopt interactive_comments interactive_comments on xb@dnxb:~/tmp$ shopt -u interactive_comments xb@dnxb:~/tmp$ shopt interactive_comments interactive_comments off xb@dnxb:~/tmp$ alias #='ls -la' xb@dnxb:~/tmp$ # /tmp -d drwxrwxrwt 14 root root 32768 Nov 2 03:09 /tmp xb@dnxb:~/tmp$
In ~/.bash_aliases, escape it:
shopt -u interactive_comments alias \#='ls -la'