zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-users@zsh.org
Subject: Re: print -D
Date: Mon, 9 Dec 2013 21:23:47 +0000	[thread overview]
Message-ID: <20131209212347.643253cf@pws-pc.ntlworld.com> (raw)
In-Reply-To: <20131209102144.GA5292@xvii.vinc17.org>

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


      reply	other threads:[~2013-12-09 21:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-09 10:21 Vincent Lefevre
2013-12-09 21:23 ` Peter Stephenson [this message]

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=20131209212347.643253cf@pws-pc.ntlworld.com \
    --to=p.w.stephenson@ntlworld.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).