From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8174 invoked by alias); 3 Jun 2011 18:31:41 -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: 29446 Received: (qmail 16707 invoked from network); 3 Jun 2011 18:31:38 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at spf-1.redhat.com designates 209.132.183.28 as permitted sender) Message-ID: <4DE9212A.2080601@redhat.com> Date: Fri, 03 Jun 2011 12:00:10 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 MIME-Version: 1.0 To: zsh-workers@zsh.org Subject: regression in ${##""} X-Enigmail-Version: 1.1.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig41C13FA4CB15EFA7C24F91BD" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 --------------enig41C13FA4CB15EFA7C24F91BD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig41C13FA4CB15EFA7C24F91BD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJN6SEqAAoJEKeha0olJ0NqFesH/RVlsybQPWNO1LRvSeeGEcHj ID1PE7u8ic0V8BP4WMsvWIhswFqUaoPZypx4yqrpmP8kxBiUNsV8Sd4pD21oPf8c RDbjrN+NEaRb11PhPdT5l2MTA5OBJpssREIyGmEaJef3OpxsPSixtg1gKknzoE1X Di1Frv5mI/AXCc2/l8o30OMJ7KHtJmMOoP0lpQsXeHm8MMThWAMB/5J1JvPEZIrx pFBkck6DXajMmOHHwlpJEhLh7nrX6yHDWi5BchbgB2CxLfUB7WG00BZSChon8cvR LmYWOY4JcVnlmdSYIUuPymJQuoJFrumhk50J41JB7cvC/raqp8Q5VvwxB+7GbOY= =Jgu9 -----END PGP SIGNATURE----- --------------enig41C13FA4CB15EFA7C24F91BD--