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

Re: Absolute path of a path



On 27 October 2010 18:44, Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> On 2010-10-27 11:34:44 +0200, JÃrÃmie Roquet wrote:
>> 2010/10/27 Nikolai Weibull <now@xxxxxxxx>:
>> > How do I get the absolute path of a path?  The only thing I can find
>> > is the :a modifier for history expansion.
>>
>> your_path(:a)
>>
>> For example .(:a) is pwd
>
> BTW, is there a way to get the canonicalised absolute pathname
> with zsh? (i.e. what the "realpath" command gives.)

If you mean resolving symlinks, try :A

-- 
Mikael Magnusson



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