zsh-workers
 help / color / mirror / code / Atom feed
* Possible bug with parameter expansion
@ 2001-03-07 11:36 Oliver Kiddle
  2001-03-08 16:33 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver Kiddle @ 2001-03-07 11:36 UTC (permalink / raw)
  To: zsh-workers

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

The ${name:#pattern} form of parameter expansion doesn't work within
double quotes. It is acting as if the pattern matched all the elements.
The following should demonstrate:

% a=( a d=rt b=fg c e=yt )
% echo ${a:#*=*}
a c
% echo "${a:#*=*}"

% echo "${(M)a:#*=*}"
a d=rt b=fg c e=yt

This looks like a bug to me because I can't see why the double quotes
should be affecting the result.

Oliver


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

end of thread, other threads:[~2001-03-12 13:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-07 11:36 Possible bug with parameter expansion Oliver Kiddle
2001-03-08 16:33 ` Bart Schaefer
2001-03-12 13:13   ` Oliver Kiddle

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).