Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: /non/existant/path(:h)
- X-seq: zsh-users 12869
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: Sebastian Stark <seb-zsh@xxxxxxxxxxx>
- Subject: Re: /non/existant/path(:h)
- Date: Tue, 27 May 2008 20:38:43 +1200 (NZST)
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <716EA334-6EED-416F-98B1-78EFE3EFA1BA@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
- References: <716EA334-6EED-416F-98B1-78EFE3EFA1BA@xxxxxxxxxxx>
On Tue, 27 May 2008, Sebastian Stark wrote:
It could be that I missed something, as always. But I think the manpage
should be more clear about that. On the other hand it would be nice if
:h indeed worked as a replacement for dirname. Not sure if this can be
achieved without too much hassle.
==============
% pwd=`pwd`
% echo $pwd
/usr/ports/shells/zsh
% echo ${pwd:h}
/usr/ports/shells
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"Scrubbing floors and emptying bedpans has as much dignity
as the Presidency."
-- Richard Nixon
Messages sorted by:
Reverse Date,
Date,
Thread,
Author