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

Re: _canonical_path not working on *BSD



Bart Schaefer wrote:
> Why do we even need the zstat if we're doing $(cd ...; pwd) ?

If the last segment is a directory we don't.  The function doesn't
actually say it needs to be, however.  I can move the -d test to
optimise this.

> I'm beginning to think this whole exercise is a bad idea anyway.  I have
> visions of sysadmins attempting to umount a misbehaving NFS server or a
> failing disk and ending up with their session frozen as zsh attempts to
> access the bad filesystem behind the scenes.

I think that's a generic problem with completing mount points, but it
would be perfectly reasonable to put the behaviour in a style.

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



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