Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in parameter expansion code?
- X-seq: zsh-workers 24087
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Bug in parameter expansion code?
- Date: Mon, 12 Nov 2007 00:32:36 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=YyIsT+E7UubKcbfloGg6p0kblrp5803MalfZ9L5++dE=; b=tbBuUsiRVdrEQQDTKrlUd1lMbUo5a2jLeCQ8kpkRlDA0eZ4HYgZlrIBv/9HSWTeJRSuJFylNuATUpu/7ahA6O42HKw2+ScNneQQWB4umOjmLundtpQ6zBRqwKua6fseACqE33oM6fZ0lAt6KlgSnTWJlJklFEbTJuxghQHIeTWk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=tQcc2132PVy8zIcfF4r8WU7+e5ct1hfT1clpUTzREh3pOm65hDSfpAt06fD/BiFIELIiLfa6GJxXMkW6jawjUqtun87u0hfZF7SNks8GFO1lZh8c8+GZ9WMmXXjk8HtNmY6dkkFs1LgHEJXzQIe8sqduC6P8SU373QE6SJfFplU=
- In-reply-to: <dbfc82860711111519r26847ae3i61de84e4a9d5da78@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <dbfc82860711111519r26847ae3i61de84e4a9d5da78@xxxxxxxxxxxxxx>
- Sender: nikolai.weibull@xxxxxxxxx
On Nov 12, 2007 12:19 AM, Nikolai Weibull <now@xxxxxxxx> 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}).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author