Running Ubuntu 14.04 LTS
I open a terminal, and type a simple alias command, but then it doesn't work:
~> alias ge='gedit &'
~> ge
ge: command not found
I've also tried adding aliases to .bashrc, .profile, .bash_aliases, all to no avail. What is most disturbing is that it doesn't work in command line.
Additional things, in response to comments:
> alias ge='gedit &'
> ge
ge: Command not found.
> alias
>
> echo $-
Illegal variable name.
> shopt -p expand_aliases
shopt: Command not found.
> . ~/.bashrc
/usr/sbin/.: Permission denied.
> source ~/.bashrc
Illegal variable name.
aliasshould list all of your aliases (including several which come with Ubuntu out of the box). Does this give you output? Does it include your newgein the output? – Michael Martin-Smucker Sep 27 '15 at 05:17echo $-andshopt -p expand_aliasesto your question. – Cyrus Sep 27 '15 at 05:32Thoth:~> alias Thoth:~>
Thoth:~> echo $- Illegal variable name. Thoth:~> shopt -p expand_aliases shopt: Command not found.
– user3347308 Sep 27 '15 at 13:11