From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1984 invoked by alias); 9 Dec 2013 21:24:01 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18210 Received: (qmail 3664 invoked from network); 9 Dec 2013 21:23:55 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=b0xpizpm6Y5KQHbm91Qw1simPJ52JRx+LhI9uIrtbk8=; b=lc4CN+lzc+Zn4qU9oZxJOPoUVoIza5+PRAU+xGmA0DFdQRLpev+wWMKTaliDr/Afy7 x8/Tf0PcwMx6SweCrLNdisv25TV8cxocy29N8t+8Ry+XCilKLuv+kRqIJfSt3mRrpkrb f4BYdsNdoNe6Jk6UP1xi4Ny2DROvbnUemLhuNAqvANB4FFVsyGE9iwtkERQU43KeKH1+ cNuOMuLYyqzHO4GOvSWdpuUkUFOVd4cQIZ34GvL/ZJ5OkLdJFJ8a0VnXZR0ZmxchONTT CyWvzpRCC9JKJrI+sNHk/hkb0Iej2xCNg99w2mC1Of8Z4PWMSsqD5l2UtbVRptIS0QGk FBzg== X-Gm-Message-State: ALoCoQlvBUSmydwr43auIBUGL5ast6vhKH7geLUSLZ3H/KZBMDAZAuFO+UGbn8NYeXJsH4BJCr8c X-Received: by 10.194.23.201 with SMTP id o9mr8327409wjf.67.1386624230998; Mon, 09 Dec 2013 13:23:50 -0800 (PST) X-ProxyUser-IP: 86.6.157.246 Date: Mon, 9 Dec 2013 21:23:47 +0000 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: print -D Message-ID: <20131209212347.643253cf@pws-pc.ntlworld.com> In-Reply-To: <20131209102144.GA5292@xvii.vinc17.org> References: <20131209102144.GA5292@xvii.vinc17.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 9 Dec 2013 11:21:44 +0100 Vincent Lefevre 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