zsh-workers
 help / color / mirror / code / Atom feed
* parameter substitution used in _values
@ 2001-06-01 13:14 Oliver Kiddle
  2001-06-01 13:39 ` Sven Wischnowsky
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Kiddle @ 2001-06-01 13:14 UTC (permalink / raw)
  To: zsh-workers

Any ideas why the difference between using $1 and $a here below:

% set -- '-Opath'
% a="$1"
% echo ${(@P)1[3,-1]}
9XZfims
% echo ${(@P)a[3,-1]}
/usr/lib/jdk1.3/bin /usr/bin /bin ... etc ...

I'm guessing that the 9XZfims is the list of single letter options but
why that and not the value of $path? This stuff is used at the beginning
of _values where it parses its options so it looks to me like _values
won't work with no space between -O and its argument.

Oliver


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

end of thread, other threads:[~2001-06-01 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-01 13:14 parameter substitution used in _values Oliver Kiddle
2001-06-01 13:39 ` Sven Wischnowsky
2001-06-01 14:21   ` Oliver Kiddle
2001-06-01 15:01   ` Bart Schaefer

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