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

Re: /non/existant/path(:h)



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