Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in syntax check
- X-seq: zsh-workers 38599
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Re: Bug in syntax check
- Date: Fri, 3 Jun 2016 23:46:56 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=TWM/DqVFmESj6KuUAK0fJfmrS996oBC5Ryxa5TA470Q=; b=vEl7kxo+RcOjzG7RtnnFZ5H5Vi4zYbQg7YI0fgwd72CPzOOodSZOl5ecrb+vlJBzkY nbeZCMxzp6u80Fmk9rGbbjLgACPR5aKT0HseoVerHL+YIVnlbkRsvka5DGGBa9780PaB xR65441Y5PFA/whqTcfrYvhPuWAXC+TDYNoRZUjFIkKwbMkTxu5ZwVa2P06sf0HEv7lu MM5GR6AQb6mde66273LZIuo7bXGs0GoA2HwWf2gb4zhO7+576Xp3IALknXaZYmMYOu+H wlA1hJtNICN03Qf1om+/50zKgDz/Rovwg/oT1QZZEptXBvjsb0yR85S3CPdvFVODqCbJ ecyQ==
- In-reply-to: <CAMP44s2=qFNbeBOhNLu+f--VasbzJ=dAX1ia6Me7Mg9nRe=UbA@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: <CAMP44s2=qFNbeBOhNLu+f--VasbzJ=dAX1ia6Me7Mg9nRe=UbA@mail.gmail.com>
On Jun 4, 5:13am, Felipe Contreras wrote:
}
} The following script works fine, but when run with 'zsh -n' the syntax
} checker returns an error:
}
} 6: no such user or named directory: tmp
diff --git a/Src/subst.c b/Src/subst.c
index 4e13ce1..8e704b1 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -691,7 +691,7 @@ filesubstr(char **namptr, int assign)
return 0;
*ptr = 0;
if (!(hom = getnameddir(++str))) {
- if (isset(NOMATCH))
+ if (isset(NOMATCH) && isset(EXECOPT))
zerr("no such user or named directory: %s", str);
*ptr = save;
return 0;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author