delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/12/18/05:02:21

From: andrewi AT harlequin DOT co DOT uk (Andrew Innes)
Subject: Re: [Bug] M-x setenv PID + bash -> M-x shell breaks
18 Dec 1997 05:02:21 -0800 :
Message-ID: <199712181232.MAA24367.cygnus.gnu-win32@shirow.long.harlequin.co.uk>
References: <mlsorrvccr DOT fsf AT mario DOT cs DOT cornell DOT edu>
To: stodghil AT cs DOT cornell DOT edu
Cc: ntemacs-users AT cs DOT washington DOT edu, gnu-win32 AT cygnus DOT com

On 17 Dec 1997 17:22:44 -0500, Paul Stodghill <stodghil AT CS DOT Cornell DOT EDU> said:
>Setting the environment variable "PID" causes shell commands to break when
>bash is the shell that emacs invokes.
>
>Using NTEmacs 19.34.6 and Cygnus gnu-win32 tools "b18", do the following.
>
>1. start emacs
>
>   c:\> runemacs -q
>
>2. Evaluate the following in the *scratch* buffer
>
>   (setq shell-file-name "bash")
>   (setq explicit-shell-file-name shell-file-name)
>   (setenv "PID" 100)
>
>3. Invoke M-x shell. Boom.
>
>4. Evalute the following in the *scratch* buffer
>
>   (setenv "PID" nil)
>
>5. Invoke M-x shell. It works!
>
>Why this happens, I have no idea. I'm not even sure if its an emacs or bash
>bug...

It is presumably a bug in bash.  Emacs doesn't care about PID.

AndrewI

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019