Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!RENOIR.BERKELEY.EDU!mlvdv From: mlvdv@RENOIR.BERKELEY.EDU (Michael Van De Vanter) Newsgroups: gnu.emacs.bug Subject: bug report Message-ID: <8902151847.AA28072@renoir.Berkeley.EDU> Date: 15 Feb 89 18:47:20 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 63 General nature: This problem appears to involve some interaction among GNU Emacs, make, and csh on Suns, while propagating csh environments. Environment: GNU Emacs version 18.51.3. We have reproduced the bug on several Suns (SunOS 3.4), under both SunView and X11R3. Note that we CANNOT reproduce it on our VAX (same Emacs version). On our Suns, the presence GNU Emacs in the chain of propagation is the only controlling factor we've been able to isolate. The bug occurs with no .emacs and .emacs_csh files present. The behavior: Create the following makefile, making sure you get the leading tabs on lines 2 and 3. -----test.Makefile------------------------------------------------------- test : @echo In Makefile FOO=${FOO} and FOOB=${FOOB} @echo In csh FOO=$${FOO} and FOOB=$${FOOB} ---------------------------------------------------------------------- In an ordinary shell (e.g. SunView cmdtool or shelltool, under SUNos 3.4), the test runs as follows: 1>setenv FOO value1 2>setenv FOOB value2 3>make -f test.Makefile In Makefile FOO=value1 and FOOB=value2 In csh FOO=value1 and FOOB=value2 4> Then start emacs in the same shell, start a shell inside emacs, and immediately execute the same makefile. The result, inside the emacs shell, is: manzanita.Berkeley.EDU% make -f test.Makefile In Makefile FOO=value1 and FOOB=value2 In csh FOO=value1 and FOOB= manzanita.Berkeley.EDU% The value of the environment variable with the longer name has gotten lost along the way. Observation: in our trials, it seems to happen only when one variable name is a prefix of the other, and the value of the longer is always the one that gets lost. M. L. Van De Vanter Computer Science Division 571 Evans Hall University of California, Berkeley Berkeley, CA 94720 (415) 642-4611 mlvdv@Renoir.Berkeley.Edu