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: magenta <email@hidden>
- Date: Sat, 8 Feb 2003 10:42:38 -0800
On Sat, Feb 08, 2003 at 02:17:32AM -0600, Randy Ford wrote:
>
> On Friday, February 7, 2003, at 06:58 PM, magenta wrote:
>
> > On Fri, Feb 07, 2003 at 10:18:42AM -0800, Lawrence You wrote:
> >> At 9:42 AM -0800 2/7/03, magenta wrote:
> >>>> It's subtle, I think I'm being pedantic, but I would like that last
> >>>> line to say "Yes."
> >>>
> >>> Which doens't make a lot of sense to those of us who actually prefer
> >>> tcsh
> >>> for their commandline interface.
> >>
> >> You're right, bash is only one example and I wouldn't want or expect
> >> .bash_profile to be executed for tcsh users. But if you're using
> >> tcsh or csh then wouldn't you want .profile or .login to be executed
> >> once? I think that's the same idea.
> >
> > True.
> >
> >>> As others have stated, if you want
> >>> something to happen in all interactive shells, it goes into .bashrc,
> >>> not
> >>> .bash_profile.
> >>
> >> Yes, that is close, but not quite what I want. For example, I don't
> >> want .bashrc (or .cshrc) to keep appending to PATH each time it is
> >> started as a subshell.
> >
> > Good point. And in those cases, you can start your .xinitrc with
> >
> > #!/usr/bin/tcsh -l
>
> Starting your .xinitrc doesn't affect other shells started by X11.app,
> such as from the Application menu.
Right, but it will affect anything launched by the WM itself or its
children (i.e. running a command from an xterm or whatever).
For a quick workaround in the Application menu (which personally I don't
use) you could make all of your commands something like:
sh --login -c "/usr/bin/foo"
--
http://trikuare.cx
_______________________________________________
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.