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

Re: Absolute path of a path



On Thu, 28 Oct 2010, Vincent Lefevre wrote:

On 2010-10-27 18:54:17 +0200, JÃrÃmie Roquet wrote:
2010/10/27 Vincent Lefevre:
BTW, is there a way to get the canonicalised absolute pathname with zsh? (i.e. what the "realpath" command gives.)

your_path(:A) I guess :)

No. The zsh man path says:

 A    As  `a',  but also resolve use of symbolic links where possible.
      Note that resolution of `..' occurs before  resolution  of  symâ
      bolic  links.   This  call is equivalent to a unless your system
      has the realpath system call (modern systems do).

but Linux doesn't have a realpath system call.

ypig:~> man 2 realpath
No manual entry for realpath in section 2

I think "system call" should be "library call" there. (so, man 3 realpath)

--
Best,
Ben


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