Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 3 bugs for zsh3.0.0
- X-seq: zsh-workers 2977
- From: Peter Stephenson <pws@xxxxxx>
- To: Huy Le <huyle@xxxxxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: 3 bugs for zsh3.0.0
- Date: Mon, 10 Mar 1997 11:22:08 +0100
- In-reply-to: "Huy Le"'s message of "Fri, 07 Mar 1997 11:46:23 MET." <199703071946.LAA09121@xxxxxxxxxxxxxxxxxxxxx>
Huy Le wrote:
> 3) zsh: error on TTY read: bad file number
> echo `echo \`vared -c result\` `
I couldn't reproduce the other two but the problem here is simply that
vared only works in the top level shell where the line editor is
running but doesn't bother to test so the error message is a bit
indecipherable.
I don't think there's anything in principle stopping it from running
vared in a subshell, but the logic to do with entersubsh() and the
variables it sets would have to be changed... it's a similar problem
to `jobs' not working in a subshell even though there's no objection
in principle to listing them there.
*** Src/Zle/zle_main.c~ Tue Feb 18 09:39:53 1997
--- Src/Zle/zle_main.c Mon Mar 10 11:12:01 1997
***************
*** 582,587 ****
--- 582,592 ----
args++;
}
+ if (SHTTY == -1) {
+ zwarnnam(name, "not in interactive shell", NULL, 0);
+ return 1;
+ }
+
/* check we have a parameter name */
if (!*args) {
zwarnnam(name, "missing variable", NULL, 0);
--
Peter Stephenson <pws@xxxxxx> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author