RE: X11 tends to misbehave under bash
RE: X11 tends to misbehave under bash
- Subject: RE: X11 tends to misbehave under bash
- From: Wilson Cheung <email@hidden>
- Date: Fri, 27 Aug 2004 19:21:02 -0400
Let me revise my statement.
I was working on a brand new Mac which proved my conclusions below
inaccurate. I've got feedback from other users and from Apple engineers
themselves and here is my updated conclusion:
1) The problem with the /bin/bash shell in X11 not reading the
.bash_profile under a shell spawned thru Matlab is probably just a
Matlab problem and not an Apple problem.
2) As far as gnuplot it appears the problem is strictly in failing to
install the X11 SDK. The X11 SDK is found on the Xcode 1.2 CD, but is
not installed automatically by installing Xcode. After installing the
X11 SDK package I saw the X11 libraries ending with the '.a' file
extension being installed. These files then made the gnuplot
./configure script happy and a make and make install cleared things up
with gnuplot.
3) As far as the ~/.xinitrc there probably is something that is
genuinely flaky here. I've got confirmation from another user that
they've had to play games such as mv .xinitrc on top of itself to get
X11 to not crash. But, I don't expect to spend much more time figuring
out what's going wierd with .xinitrc as I'm satisfied with the
/bin/tcsh reliably reading the .tcshrc file in X11 even when spawned by
Matlab.
Wilson Cheung
After struggling for over a month trying to get X11 applications such
as gnuplot and Matlab to work properly, I've now determined that the
problems seem to occur when you have /bin/bash as your default shell.
For owners of newer Macs you will probably have /bin/bash as your
default shell and things will almost work for you but not quite. For
example you will be frustrated with how to set the PATH environment
variable other than inside /etc/x11/xinit/xinitrc. You will find
that creating ~/.xinitrc will tend to hang the xterm application and
crash X11. The environment.plist file won't work for you, the
.bash_profile file won't work for you, even though .bash_profile will
be read by the OS X Terminal application.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.