From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from math.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by werple.net.au (8.7/8.7.1) with SMTP id DAA10342 for ; Wed, 8 Nov 1995 03:08:35 +1100 (EST) Received: by math.gatech.edu (5.x/SMI-SVR4) id AA08954; Tue, 7 Nov 1995 10:41:58 -0500 Resent-Date: Tue, 7 Nov 1995 16:42:13 +0100 (MET) Old-Return-Path: From: pws@ifh.de (Peter William Stephenson) Message-Id: <9511071542.AA01774@sgi.ifh.de> Subject: Re: bug in zsh 2.6 beta 11 To: kpc@ptolemy-ethernet.arc.nasa.gov Date: Tue, 7 Nov 1995 16:42:13 +0100 (MET) Cc: zsh-workers@math.gatech.edu (Zsh hackers list) In-Reply-To: <9511071059.AA18493@phenotype.arc.nasa.gov> from "kpc" at Nov 7, 95 02:59:41 am X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-Id: <"22XQY3.0.qB2.5vtdm"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/546 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu According to kpc: > % . .zslow > .zslow: no such file or directory: usr/local/X.V11R5/lib/XKeysymDB [291] > O.K., I can now confirm this... it's a classic exit-instead-of-_exit bug AGAIN --- I fixed this just a couple of months ago and the _exit I put into execcmd() has mysteriously vanished from the face of the earth. (I'm pretty sure it was the same bug, apologies if it was something slightly different which became redundant.) The subshell forked to do the `fix ...` was calling exit(), which messed up the files for the parent shell. (This is going to cause apparently random inexplicable bugs on all sorts of SYSV-like machines until it's re-fixed.) kpc: the ${EMACS:-} bug you reported by private email I've just sent a patch to the list for. If this doesn't fix the problems, holler again. *** Src/exec.c~ Tue Nov 7 04:43:04 1995 --- Src/exec.c Tue Nov 7 16:19:25 1995 *************** *** 1514,1520 **** /* only save the history file on a real exec */ if ((cmd->flags & CFLAG_EXEC) && unset(NORCS) && interact) savehistfile(getsparam("HISTFILE"), 1, isset(APPENDHISTORY) ? 3 : 0); ! exit(lastval); } if (!forked && !assign) --- 1514,1523 ---- /* only save the history file on a real exec */ if ((cmd->flags & CFLAG_EXEC) && unset(NORCS) && interact) savehistfile(getsparam("HISTFILE"), 1, isset(APPENDHISTORY) ? 3 : 0); ! if (subsh) ! _exit(lastval); ! else ! exit(lastval); } if (!forked && !assign) -- Peter Stephenson Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77330 Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, 15735 Zeuthen, Germany.