Why NOT the bash alias take effect?


#1

$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

$alias
echo Nothing

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

alias ls=‘ls --color=auto’

Why the alias NOT take effect automatically?


#2

$alias

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

.alias
. .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