Re: X11 crashes on Mac under all conditions
Re: X11 crashes on Mac under all conditions
- Subject: Re: X11 crashes on Mac under all conditions
- From: email@hidden
- Date: Wed, 25 Aug 2004 12:09:23 -0400 (EDT)
> That's odd. I run /bin/bash and it sources my .profile every time I
> run an xterm.
> I never modified any plist files.
Xterm isn't the problem; it's ~/.xinitrc. When X11.app starts and runs
~/.xinitrc, it does so with a non-login, non-interactive shell -- which
does not read any init files at all, hence the need for BASH_ENV. In
fact, X11.app invokes the shell as /bin/sh, so there's the further need to
reinvoke it as /bin/bash in order to get it to process $BASH_ENV. I do
this:
[~/.xinitrc]
# The X server runs this file explicity as input to /bin/sh. But we need
# the shell invoked as "bash", so its startup behavior will be correct
# (see the INVOCATION section of bash(1)): we want our .bashrc file to
# be taken. So we reinvoke bash here.
#
/bin/bash <<EOF
[... startup script here ...]
EOF
--
Richard E. Silverman
email@hidden
_______________________________________________
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.