From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3611 invoked from network); 10 Mar 1997 10:36:21 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 10 Mar 1997 10:36:21 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id FAA21029; Mon, 10 Mar 1997 05:19:41 -0500 (EST) Resent-Date: Mon, 10 Mar 1997 05:19:41 -0500 (EST) Message-Id: <199703101022.LAA18632@hydra.ifh.de> To: Huy Le , zsh-workers@math.gatech.edu (Zsh hackers list) Subject: Re: 3 bugs for zsh3.0.0 In-reply-to: "Huy Le"'s message of "Fri, 07 Mar 1997 11:46:23 MET." <199703071946.LAA09121@envy.ugcs.caltech.edu> Date: Mon, 10 Mar 1997 11:22:08 +0100 From: Peter Stephenson Resent-Message-ID: <"oXcS-1.0.W85.z0-8p"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2977 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.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 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.