Re: Readline initialization in .bash_profile -> Xquartz crash
Re: Readline initialization in .bash_profile -> Xquartz crash
- Subject: Re: Readline initialization in .bash_profile -> Xquartz crash
- From: Harald Hanche-Olsen <email@hidden>
- Date: Tue, 19 Feb 2008 21:37:43 +0100 (CET)
+ Jeremy Huddleston <email@hidden>:
> No... that won't work because startx will still source ~/.bashrc
> (not .bash_profile) even if we do that.
No:
; head -1 /usr/X11/bin/startx
#!/bin/sh
... and this section from the bash man page says otherwise:
If bash is invoked with the name sh, it tries to mimic the
startup behavior of historical versions of sh as closely as
possible, while conforming to the POSIX standard as well.
[...] A non-interactive shell invoked with the name sh does
not attempt to read any [other] startup files. When invoked as
sh, bash enters posix mode after the startup files are read.
Or did I miss something?
> > named /usr/X11/bin/startx-noargs and add code like
> >
> > case "$0" in
> > *-noargs) set -- ;;
> > esac
> >
> > to it (untested).
- Harald
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden