Re: Bash login shells with X11 (executing .bash_profile, .bashrc)
Re: Bash login shells with X11 (executing .bash_profile, .bashrc)
- Subject: Re: Bash login shells with X11 (executing .bash_profile, .bashrc)
- From: Lawrence You <email@hidden>
- Date: Fri, 7 Feb 2003 09:11:46 -0800
At 10:29 AM +0100 2/7/03, kristian ragndahl wrote:
On Thu, 6 Feb 2003, Lawrence You wrote:
Has anyone been able to get .bash_profile to be executed without
having to specify "xterm --login"? When I start up an xterm from the
X11 Beta, .bash_profile doesn't get run at any time.
I put this in my ~/.Xdefaults;
XTerm*.LoginShell: True
--
kristian ragndahl
Thanks for this and the other responses. I use .Xdefaults for other
programs but it didn't occur to me to try to set the resource for
xterm. I can't remember ever having to set xterm for login before.
That works.
I was going to say that this behavior seems like a bug, i.e. that at
some point, I'd assume that you would have "logged in" and the script
would be executed. Since the login on Mac OS X is not shell-based,
that assumption is wrong (and for the vast majority of Mac OS X
users, a behavior they probably don't want or need). I think it would
be nice for the X11 application to assume that it is taking care of
the "login" step, albeit without any kind of authentication.
Anyway, for the record, I did a quick survey of Unix or Unix-like
environments asking the question "Does it execute .bash_profile at
'login'?":
Cygwin terminal: Yes
Cygwin/XFree86(double-clicking startxwin.bat icon)/xterm: No
Cygwin/XFree86(manually executing startx)/xterm: Yes (inherits
current env variables)
xdm/KTerm or xdm/xterm (Red Hat 7.1/x86): Yes
Unix login (Linux, BSD, whatever): Yes
XDarwin (w/or w/o OroborOSX): Yes
X11 for Mac OS X Beta: No
It's subtle, I think I'm being pedantic, but I would like that last
line to say "Yes."
-Lawrence
_______________________________________________
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.