zsh-workers
 help / color / mirror / code / Atom feed
* Bug in parameter expansion code?
@ 2007-11-11 23:19 Nikolai Weibull
  2007-11-11 23:32 ` Nikolai Weibull
  0 siblings, 1 reply; 2+ messages in thread
From: Nikolai Weibull @ 2007-11-11 23:19 UTC (permalink / raw)
  To: zsh-workers

% set 1 0
% echo ${(l:$(( $#2 + ${1} * 3 ))::x:)}
xxxx
% echo ${(l:$(( $#2 + ${1:-1} * 3 ))::x:)}
zsh: closing brace expected
zsh: parse error in command substitution


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

* Re: Bug in parameter expansion code?
  2007-11-11 23:19 Bug in parameter expansion code? Nikolai Weibull
@ 2007-11-11 23:32 ` Nikolai Weibull
  0 siblings, 0 replies; 2+ messages in thread
From: Nikolai Weibull @ 2007-11-11 23:32 UTC (permalink / raw)
  To: zsh-workers

On Nov 12, 2007 12:19 AM, Nikolai Weibull <now@bitwi.se> wrote:

> % echo ${(l:$(( $#2 + ${1:-1} * 3 ))::x:)}
> zsh: closing brace expected
> zsh: parse error in command substitution

Sorry, my braindamage, not Zsh's (I'm using ':' as the delimiter for
the 'l' modifier, thus the ':' in ${1:-1} is seen as a delimiter, not
part of the expansion of ${1}).


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

end of thread, other threads:[~2007-11-11 23:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-11 23:19 Bug in parameter expansion code? Nikolai Weibull
2007-11-11 23:32 ` Nikolai Weibull

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