From: Mikael Magnusson <mikachu@gmail.com>
To: zsh-users@zsh.org
Subject: Re: Absolute path of a path
Date: Wed, 27 Oct 2010 18:54:32 +0200 [thread overview]
Message-ID: <AANLkTikAvtXdT8+nyVCPBpKzcjL_nr0Q=eDUrvv2_gya@mail.gmail.com> (raw)
In-Reply-To: <20101027164454.GA19471@prunille.vinc17.org>
On 27 October 2010 18:44, Vincent Lefevre <vincent@vinc17.net> wrote:
> On 2010-10-27 11:34:44 +0200, Jérémie Roquet wrote:
>> 2010/10/27 Nikolai Weibull <now@bitwi.se>:
>> > 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
next prev parent reply other threads:[~2010-10-27 16:59 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-27 9:25 Nikolai Weibull
2010-10-27 9:34 ` Jérémie Roquet
2010-10-27 9:37 ` Nikolai Weibull
2010-10-27 16:44 ` Vincent Lefevre
2010-10-27 16:54 ` Jérémie Roquet
2010-10-28 10:44 ` Vincent Lefevre
2010-10-28 10:46 ` Vincent Lefevre
2010-10-28 10:52 ` Vincent Lefevre
2010-12-20 10:26 ` Vincent Lefevre
2010-12-20 14:44 ` Peter Stephenson
2010-12-25 14:43 ` Vincent Lefevre
2010-10-28 12:19 ` Jérémie Roquet
2010-10-28 13:17 ` Vincent Lefevre
2010-10-28 12:45 ` Benjamin R. Haskell
2010-10-27 16:54 ` Mikael Magnusson [this message]
2010-10-27 16:57 ` Benjamin R. Haskell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTikAvtXdT8+nyVCPBpKzcjL_nr0Q=eDUrvv2_gya@mail.gmail.com' \
--to=mikachu@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).