Why NOT the bash alias take effect?

$cat ~/.alias

$Id: .alias,v 1.1 1999/11/27 23:01:40 sage Exp $

Luis Francisco Gonzlez luisgh@debian.org based on that of Vadik Vygonets

Please check /usr/doc/tcsh/examples/alias to see other possible values.

alias ls 'ls --color=auto’
alias md mkdir
alias rd rmdir

echo Nothing

I must set it manually:
$alias ls=‘ls --color=auto’

alias ls=‘ls --color=auto’

Why the alias NOT take effect automatically?


You said the file was named “.alias”, so you would need to use something like:

. .alias
sh .alias

to get it to work.

If you want it to work every time you login, you might want to put it into your .bash_profile.

You are welcome to a refund.-Michael;Comparing ‘DH of today’ with ‘DH of old’ does not serve much purpose.-Dallas