zsh-users
 help / color / mirror / code / Atom feed
* print -D
@ 2013-12-09 10:21 Vincent Lefevre
  2013-12-09 21:23 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Lefevre @ 2013-12-09 10:21 UTC (permalink / raw)
  To: zsh-users

About "print -D", the zshbuiltins(1) man page says:

        -D     Treat the arguments as directory names, replacing
               prefixes with ~ expressions, as appropriate.

But what if an argument is not a directory name? Why directory names
and not just pathnames?

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: print -D
  2013-12-09 10:21 print -D Vincent Lefevre
@ 2013-12-09 21:23 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2013-12-09 21:23 UTC (permalink / raw)
  To: zsh-users

On Mon, 9 Dec 2013 11:21:44 +0100
Vincent Lefevre <vincent@vinc17.net> wrote:
> About "print -D", the zshbuiltins(1) man page says:
> 
>         -D     Treat the arguments as directory names, replacing
>                prefixes with ~ expressions, as appropriate.
> 
> But what if an argument is not a directory name? Why directory names
> and not just pathnames?

It's not well described.

diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index b23ce30..8c7bc85 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -1113,8 +1113,8 @@ Print the arguments in var(cols) columns.  Unless tt(-a) is also given,
 arguments are printed with the row incrementing first.
 )
 item(tt(-D))(
-Treat the arguments as directory names, replacing prefixes with tt(~)
-expressions, as appropriate.
+Treat the arguments as paths, replacing directory prefixes with tt(~)
+expressions corresponding to directory names, as appropriate.
 )
 item(tt(-i))(
 If given together with tt(-o) or tt(-O), sorting is performed

pws


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-09 21:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-09 10:21 print -D Vincent Lefevre
2013-12-09 21:23 ` Peter Stephenson

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).