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

A couple of bugs in zsh-3.0.7



 There are a couple of bugs in the way functions are handled in
zsh-3.0.7 ...

 It's easiest to show them...

% where abcd
% alias abcd="echo abcd"
% where abcd
echo abcd
% abcd
abcd
% abcd () { echo xyz  
2> }
% where abcd
echo abcd
abcd
 /* running abcd at this point crashes zsh */

 Where as...

% touch bin/abcd
% chmod +x bin/abcd
% where abcd
/home/james/bin/abcd
% abcd () { echo abcd
2> }
% where abcd
abcd
/home/james/bin/abcd
% abcd
abcd
% alias abcd="echo abcd"
% where abcd
echo abcd
abcd
/home/james/bin/abcd
% abcd
abcd

 Works ...

 Also...

% where ls
/bin/ls
/usr/bin/ls
% alias ls="echo abcd"
% where ls
echo abcd
/bin/ls
/usr/bin/ls
% ls () { echo xyz
2> }
% where ls
echo abcd
/bin/ls
/usr/bin/ls
% 
/* running abcd cores zsh at this point too */

-- 
James Antill -- james@xxxxxxx
I am always an optimist, but frankly there is no hope.
   -Hosni Mubarek



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