🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99587

compilation doesn't respect aliases

#99587
From: Michael Ernst
Date: Fri, 20 Jul 1990 04:09
22 lines
1454 bytes
In my .cshrc I have aliased gcc to 'gcc -I/u/mernst/bin/util'.  This causes
that directory to be searched for #include files.

However, when I do a compile with "gcc foo.c", that directory isn't
searched.  In compile.el, in the compile1 function, we see
  (setq compilation-process
	(start-process "compilation" "*compilation*"
		       shell-file-name
		       "-c" (concat "exec " command)))

The problem is that, while the alias is in effect in the shell, exec is the
first word of the command, and only it is alias-substituted against.  When
I remove this (making the last line
		       "-c" command))
), then the alias is no longer in effect in the shell, so I get the same
results as I did before.

How can I get the behavior I want?
					Thanks,

					-Michael Ernst
					 mernst@theory.lcs.mit.edu 
Technical Details
Message-ID: <MERNST.90Jul20000914@owl.lcs.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wuarchive!cs.utexas.edu!yale!mintaka!mintaka!mernst

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,9824103712728c3,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-07-20 00:55:54 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wuarchive!cs.utexas.edu!yale!mintaka!mintaka!mernst
From: mernst@theory.lcs.mit.edu (Michael Ernst)
Newsgroups: gnu.emacs.bug
Subject: compilation doesn't respect aliases
Message-ID: <MERNST.90Jul20000914@owl.lcs.mit.edu>
Date: 20 Jul 90 04:09:14 GMT
Sender: daemon@mintaka.lcs.mit.edu (Lucifer Maleficius)
Distribution: gnu
Organization: MIT Lab for Computer Science
Lines: 22
Posted: Fri Jul 20 05:09:14 1990