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

Re: symlink chain.



"whence -s" no longer works in a way I would expect.  To wit:

$ echo $PATH
/home/acs/bin:/opt/bin:/usr/bin:/bin:/usr/sbin:/sbin:/etc

$ ls -ld /opt /opt/xemacs /opt/bin/xemacs
lrwxrwxrwx 1 root root 12 Nov 30 23:09 /opt -> raid-3tb/opt
lrwxrwxrwx 1 acs  acs  20 Nov 19  2013 /opt/bin/xemacs -> ../xemacs/bin/xemacs
lrwxrwxrwx 1 acs  acs  22 Jan  1 08:57 /opt/xemacs -> xemacs-21.4-2015-01-01

So /opt/bin/xemacs points to a particular xemacs installation

$ /opt/zsh-2015-01-01/bin/zsh -f
legolas-i5% whence -s xemacs
/opt/bin/xemacs -> /raid-3tb/opt/xemacs-21.4-2015-01-01/bin/xemacs-21.4.22

This version (2015-01-01) makes sense, ultimately resolving the path to a file.

$ /opt/zsh-2015-01-04/bin/zsh -f
legolas-i5% whence -s xemacs
/opt/bin/xemacs -> /raid-3tb/opt

This version is wrong.

Can we please have the old behavior back?

Thank you,
  Vin



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