From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26288 invoked by alias); 3 Jun 2011 19:02:30 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29447 Received: (qmail 6314 invoked from network); 3 Jun 2011 19:02:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=fwYRdelpdevpJidUt5gtiBJpNK/TiCocnNSKKFBvmb0=; b=rTUBoV6KaLKDbvhFCvckok5NU8uD8/AqXIss6l/iFJN0V4OnM3sv+JNCpAZlMtbwrq 6YmpAs43GJaFNyf9VCWsZftbU+uCPYRJl9lDSSijf3ahDxnYh+jAy7g+evN+6bja6G/l 0X2/j1Wy+PgdMutlZ1WWIhxu3G1nosDdoriZQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=RDoGC79UAild38HwJMzT8MRk75G45lXrN5S0d2s0MCyeR1Z3su0SAIZnLqIVsPCzNJ R1RpnsivlmjBfSWlMLLzy7/W2wSEX9DxlMGczAa4nzumREmguRK6/RcMldt+C30B6/xg 0md644Ndr0SW3Ll20RxgRyRUKyVaS+CM4lurk= MIME-Version: 1.0 In-Reply-To: <4DE9212A.2080601@redhat.com> References: <4DE9212A.2080601@redhat.com> Date: Fri, 3 Jun 2011 20:55:00 +0200 Message-ID: Subject: Re: regression in ${##""} From: Mikael Magnusson To: Eric Blake Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On 3 June 2011 20:00, Eric Blake wrote: > POSIX requires ${##""} to be parsed as ${parameter#word} with parameter > of # and word of "", which results in the output of $# with the shortest > prefix of the empty string removed (aka ${#}). But current zsh.git > rejects this: > > $ ./Src/zsh -c 'set a b; echo ${##""}' > zsh:1: bad substitution > > Worse, this is a regression: > > $ zsh -c 'set a b; echo ${##""}' > 2 > $ rpm -q zsh > zsh-4.3.10-5.fc14.x86_64 Not a surprise, this is due to 28889: ${##} should return the length of $# -- Mikael Magnusson