Re: X11 Startup problem
Re: X11 Startup problem
- Subject: Re: X11 Startup problem
- From: Nick Phillips <email@hidden>
- Date: Wed, 14 May 2003 09:17:53 +1200
On Wednesday, May 14, 2003, at 01:33 AM, Bruce Truax wrote:
hostname: Command not found.
tr: Command not found.
whoami: Command not found.
[:~] %
OK, so your PATH is not set right.
On the other hand, if I open a terminal window and issue the command:
/Applications/X11.app/Contents/MacOS/X11
Then the application starts properly and everything works. Does
anyone have
any ideas why there is a difference?
Probably because you have your .cshrc and .login confused. When you
open X11 from
the command line, your current environment (including your PATH) will
be passed to it.
When you open it using the icon, however, it won't -- but the xterm
will start the shell, and
the shell will use the appropriate init files (by which I mean some
combination of .login,
.cshrc, .tcshrc etc.).
When it comes to starting the xterm, it will start the shell, which
will then try to source the
right init file(s), depending on whether it is being started as a login
shell or not (I'm not
sure whether X11 tells xterm to start a login shell or not).
Basically you need to check which commands you have in which init file,
and which init
file is being used when -- try echoing a couple of lines from each init
file so you can see
what's going on. I don't use tcsh any more so I can't remember exactly
what it does, but
I think it uses .cshrc (or .tcshrc) whatever, and .login only for login
shells.
Hope that makes some kind of sense.
Cheers,
Nick
--
Nick Phillips / +64 3 479 7073 / email@hidden
# these statements are my own, not those of the University of Otago
_______________________________________________
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.