zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: Huy Le <huyle@pride.ugcs.caltech.edu>,
	zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: 3 bugs for zsh3.0.0
Date: Mon, 10 Mar 1997 11:22:08 +0100	[thread overview]
Message-ID: <199703101022.LAA18632@hydra.ifh.de> (raw)
In-Reply-To: "Huy Le"'s message of "Fri, 07 Mar 1997 11:46:23 MET." <199703071946.LAA09121@envy.ugcs.caltech.edu>

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@ifh.de>       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.


  reply	other threads:[~1997-03-10 10:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-07 19:46 Huy Le
1997-03-10 10:22 ` Peter Stephenson [this message]
1997-03-17 18:18 Zefram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199703101022.LAA18632@hydra.ifh.de \
    --to=pws@ifh.de \
    --cc=huyle@pride.ugcs.caltech.edu \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).