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

Re: print -D



On Mon, 9 Dec 2013 11:21:44 +0100
Vincent Lefevre <vincent@xxxxxxxxxx> 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



Messages sorted by: Reverse Date, Date, Thread, Author