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

Re: Updated _acroread completer



Haakon Riiser wrote:
> So I'll just have to resolve the symlink using readlink.  I assume
> the most portable way to do this is perl, unless there is a way
> to make zsh expand the link itself.  I have attached a version that
> does this.  Should handle any level of symbolic links that point to
> new symbolic links.

You can use the zsh/stat library.

  zmodload -i zsh/stat
  stat -A ln +link ~/perforce
  print $ln[1]
  /pws/perforce

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************



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