Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!xanth!mcnc!rti!sas!sasdjb From: sasdjb@sas.UUCP (David Biesack) Newsgroups: comp.emacs Subject: bug in substitute-in-file-name Message-ID: <1319@sas.UUCP> Date: 15 Nov 89 16:34:28 GMT Reply-To: sasdjb@sas.UUCP (David Biesack) Distribution: usa Organization: SAS Institute Inc, Cary NC Lines: 43 substitute-in-file-name does not work properly on Apollo Domain/OS GNU Emacs. The problem seems to occur when an environment variable contains a pathname which begins with //hostname, as shown in a log below: (emacs-version) "GNU Emacs 18.54.2 of Mon Jun 12 1989 on sdcapol2 (Domain/OS)" (getenv "JJ") "-idir //javelin/udr2/sasdjb/h -idir /usr/include" (getenv "KK") "-idir /udr2/sasdjb/h -idir /usr/include" (setq compile-command "/com/cc foo.c -b ../obj/foo.bin $JJ") "/com/cc foo.c -b ../obj/foo.bin $JJ" (substitute-in-file-name compile-command) "/javelin/udr2/sasdjb/h -idir /usr/include" (setq compile-command "/com/cc foo.c -b ../obj/foo.bin $KK") "/com/cc foo.c -b ../obj/foo.bin $KK" (substitute-in-file-name compile-command) "/com/cc foo.c -b ../obj/foo.bin -idir /udr2/sasdjb/h -idir /usr/include" The substitution of $JJ causes a loss of the string up to the //javelin in the environment variable! The second substitute, with env var KK works properly. I copied this from an emacs session run as: % emacs -q from a /bin/csh with SYSTYPE="bsd4.2", running Domain 9.7 Thanks, djb -- David J. Biesack SAS Institute, Inc. rti!sas!sasdjb SAS Circle, Box 8000 (919) 467-8000 Cary, NC 27512-8000