zsh-workers
 help / color / mirror / code / Atom feed
* regression in ${##""}
@ 2011-06-03 18:00 Eric Blake
  2011-06-03 18:55 ` Mikael Magnusson
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Blake @ 2011-06-03 18:00 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

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@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-03 20:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-03 18:00 regression in ${##""} Eric Blake
2011-06-03 18:55 ` Mikael Magnusson
2011-06-03 19:16   ` Eric Blake
2011-06-03 20:16   ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).