Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
regression in ${##""}
- X-seq: zsh-workers 29446
- From: Eric Blake <eblake@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: regression in ${##""}
- Date: Fri, 03 Jun 2011 12:00:10 -0600
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Openpgp: url=http://people.redhat.com/eblake/eblake.gpg
- Organization: Red Hat
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
--
Eric Blake eblake@xxxxxxxxxx +1-801-349-2682
Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author