From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21239 invoked by alias); 27 Dec 2012 09:07:00 -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: 17502 Received: (qmail 13494 invoked from network); 27 Dec 2012 09:06:48 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at linux.vnet.ibm.com does not designate permitted sender hosts) Date: Thu, 27 Dec 2012 17:06:04 +0800 From: Han Pingtian To: zsh-users@zsh.org Subject: Re: priority problem of ":|" and ":*" Message-ID: <20121227090604.GB2054@localhost.localdomain> References: <20121224105241.GA24051@localhost.localdomain> <20121225231133.GA8145@localhost.localdomain> <121226011019.ZM32249@torch.brasslantern.com> <20121226100944.GB8145@localhost.localdomain> <121226222458.ZM735@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <121226222458.ZM735@torch.brasslantern.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12122709-7408-0000-0000-00000B57116B On Wed, Dec 26, 2012 at 10:24:58PM -0800, Bart Schaefer wrote: > In this case rule 5 should have mentioned an exception for the # length > expression as it does for the (@) array flag, and the description of SPEC > in the ${#SPEC} documentation might have been qualified to explain that > surrounding double-quotes are intentionally prevented from altering the > semantics of the length calculation. > > To get what you expected, you must use a nested substitution. Thanks.