Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Absolute path of a path
- X-seq: zsh-users 15509
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Absolute path of a path
- Date: Wed, 27 Oct 2010 18:54:32 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=JqW7C8PPwi68mIsBga5lTYF9U5JZmTjnAOIkBERmB24=; b=FD0AZqhI6HFvRWBzrOLEzEPHpxR/0vF+ZdrwbP9o8FN3WaueWtX0Gd4ul0893U7UI1 DeyGQi4GL6lJLlZWM4q3Mkuqz9dJXHbxQQD6tcoUAuOTpOfEa1Vln3Cqj5vt4zirU10h /gxowAoWTnzlSQLfruI+zJ0Yb+ompEk578aAQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=MwUTD/5E0CmQ48wjrRtnnuUSSYa6zsMC10j2MRpV9GWB4qP6EerG7Fs/wFkRu3lKdt n7XmC0lF/1xQzbruKJT4vcNmQjPgCt+n4Zpaykw0pekbHHUD/1WajMvLWYYPfFojwiw+ bsxYIftqXFWrQPd9/8jtPiz6fH1Kqmxew+rfA=
- In-reply-to: <20101027164454.GA19471@xxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <AANLkTikZN2Lk3zf2fWqD917TA-Wa5jCBQSZ-7VNWVOCj@xxxxxxxxxxxxxx> <AANLkTi=j_OtAziY1X=1qj=zk3P7=U6my1sd=bVshp69u@xxxxxxxxxxxxxx> <20101027164454.GA19471@xxxxxxxxxxxxxxxxxxx>
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