Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Empty array and parameter expansion



I don't understand the following behavior (with zsh 3.0.5):

% i=test
% a=()
% a=($a $i)
% echo $a
$i

I would have thought that "test" would be printed.
Is it a bug or a strange feature?

-- 
Vincent Lefevre <Vincent.Lefevre@xxxxxxxxxxx> - PhD stud. in Computer Science
Web: http://www.ens-lyon.fr/~vlefevre/ - 100% validated HTML - Acorn Risc PC,
Yellow Pig 17, Championnat International des Jeux Mathematiques et Logiques,
TETRHEX, Faits divers insolites, etc...



Messages sorted by: Reverse Date, Date, Thread, Author