zsh-workers
 help / color / mirror / code / Atom feed
From: pws@ifh.de (Peter William Stephenson)
To: kpc@ptolemy-ethernet.arc.nasa.gov
Cc: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: bug in zsh 2.6 beta 11
Date: Tue, 7 Nov 1995 16:42:13 +0100 (MET)	[thread overview]
Message-ID: <9511071542.AA01774@sgi.ifh.de> (raw)
In-Reply-To: <9511071059.AA18493@phenotype.arc.nasa.gov> from "kpc" at Nov 7, 95 02:59:41 am

According to kpc:
> % . .zslow
> .zslow: no such file or directory: usr/local/X.V11R5/lib/XKeysymDB [291]
> <and over and over again...>

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



  parent reply	other threads:[~1995-11-07 16:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-07 10:59 bug in zsh 2.6 beta 11: xkeysymdb kpc
1995-11-07 12:55 ` P.Stephenson
1995-11-07 15:42 ` Peter William Stephenson [this message]
1995-11-07 17:54   ` bug in zsh 2.6 beta 11 Vinnie Shelton
1995-11-07 20:01   ` Richard Coleman
1995-11-09  2:42   ` kpc
1995-11-09  2:52     ` Richard Coleman
1995-11-09  3:20       ` kpc

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=9511071542.AA01774@sgi.ifh.de \
    --to=pws@ifh.de \
    --cc=kpc@ptolemy-ethernet.arc.nasa.gov \
    --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).