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

Re: Next release (5.3)



On 2016-07-20 15:05:12 +0200, Vincent Lefevre wrote:
> On 2016-07-12 09:40:17 -0700, Bart Schaefer wrote:
> > On Jul 12,  9:58am, Roman Neuhauser wrote:
> > } Subject: Re: Next release (5.3)
> > }
> > } I understand the issue is that although zshexpn(1) claims...
> > } 
> > }   This call is equivalent to `a` unless your system has the realpath
> > }   system call (modern systems do).
> > } 
> > } ... this is not the case.  Correct?  Well, I use it for this
> > } exact purpose.
> > 
> > Your statement is going to require some clarification.  By "exact purpose"
> > do you mean "as a replacement for realpath"?
> > 
> > The documentation says:
> > 
> > 1. resolution of `..' occurs _before_ resolution of symbolic links
> > 2. equivalent to a unless your system has the realpath system call
> > 
> > These are not contraditory but they explicitly do NOT mean that :A
> > is a replacement for realpath.  All that (2) means is :A does NOT
> > follow symbolic links unless realpath is available to do that work.
> 
> But it does not say how ".." is resolved. Using the realpath system
> call is a way (the only correct one) to resolve "..".

BTW, Bart, you even got confused in the past:

  http://www.zsh.org/mla/users/2013/msg00675.html

with an incorrect solution.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



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