Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Fix for ksh emulation
- X-seq: zsh-workers 29920
- From: İsmail Dönmez <ismail@xxxxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxx>
- Subject: Fix for ksh emulation
- Date: Mon, 28 Nov 2011 09:48:08 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=namtrac.org; s=www; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=qyRYHKHLNtJjTSnFVwF+jaVOiHuIuVy/8SPtcwh4Jq4=; b=ZY8eWkmhjqaHHb1g9oVcDMq+0bM90OlrSXmjtHZLMSm6UKPDtmjI9FYE7ClUt0rgLp 3S/rcu77zLhk5yZIpmzIgzA0AG7e+yTg1sz3T62sZU90Rq6755G9XkV7x24z70g/nZlP dk6kkiWSef44s3IUD7XIEq1G9M8FIg/Jrz7XU=
- In-reply-to: <CAJR5sYjgjHm9QFxevA111NnYMGbY14+zfyo8aYtakdjt+V_uFg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAJR5sYjgjHm9QFxevA111NnYMGbY14+zfyo8aYtakdjt+V_uFg@mail.gmail.com>
diff -ruN zsh-4.3.12-orig/Src/subst.c zsh-4.3.12/Src/subst.c
--- zsh-4.3.12-orig/Src/subst.c 2011-05-23 18:48:19.000000000 +0200
+++ zsh-4.3.12/Src/subst.c 2011-06-29 13:44:13.000000000 +0200
@@ -245,7 +245,10 @@
if (endchar == Outpar && str2[1] == '(' && str[-2] == ')') {
/* Math substitution of the form $((...)) */
str[-2] = '\0';
- str = arithsubst(str2 + 2, &str3, str);
+ if (isset(EXECOPT))
+ str = arithsubst(str2 + 2, &str3, str);
+ else
+ strncpy(str3, str2, 1);
setdata(node, (void *) str3);
continue;
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author