Re: please help: fink, xemacs
Re: please help: fink, xemacs
On Tue, Apr 01, 2003 at 09:13:25AM -0500, robert delius royar wrote:
> On Tue, 1 Apr 2003, Tim Cutts wrote:
>
> > On Mon, Mar 31, 2003 at 11:09:12AM -0700, Markian Hlynka wrote:
> > Be very careful with "which". It lies. which is a csh script. It
> > therefore reads your /bin/[t]csh path, and will give the *wrong* answer
> > if your path as set up for csh is different from that for bourne shells,
> > and this is likely to be the case for users (like root) whose login
> > shell is not csh or tcsh.
> man which
> brings up the tcsh manual entry with the following builtin:
> which command (+)
> Displays the command that will be executed by the
> shell after substitutions, path searching, etc.
> The builtin command is just like which(1), but it
> correctly reports tcsh aliases and builtins and is
> 10 to 100 times faster. See also the which-com-
> mand editor command.
The point is that if you use 'which' from a shell other than tcsh, you
get the command /usr/bin/which, which is a csh script, and will still
obey your .cshrc rather than your current PATH.
Tim
--
Dr Tim Cutts
Informatics Systems Group
Wellcome Trust Sanger Institute, Hinxton, Cambridge, CB10 1SA, UK
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.