This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Bug] M-x setenv PID + bash -> M-x shell breaks


On 17 Dec 1997 17:22:44 -0500, Paul Stodghill <stodghil@CS.Cornell.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@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]