View Single Post

   
  #1 (permalink)  
Old 01-16-2008, 05:21 PM
J
 
Posts: n/a
Default alias substitution fails

Hello All,
Can anyone advise me regarding the following problem/bug?
I have used an example below...

On the command line......I set up the following...

$alias test='/usr/bin/ls'
$
$ export LIST="test /home/myhome"

If I now type in
$ set -x
$ test /home/myhome
+ /usr/bin/ls /home/myhome
..........
..........ls ouput
..........

But,
$ $LIST
+ test /home/myhome
$

Why in the second case even though the variable $LIST is expanded out does
the shell not realise that 'test' is an alias? Is this a bug? Everything is
still set okay but it doesn't substitute 'test'.


Reply With Quote