• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bash login shells with X11 (executing .bash_profile, .bashrc)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash login shells with X11 (executing .bash_profile, .bashrc)


  • Subject: Re: Bash login shells with X11 (executing .bash_profile, .bashrc)
  • From: "Thomas 'Tom' R. Treadway III" <email@hidden>
  • Date: Fri, 7 Feb 2003 10:53:09 -0800

> 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.


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.


That's why PATH (and other environment variables)
should NOT be set in .bashrc (.kshrc)

trt
-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.



--
Thomas R. Treadway
Computer Scientist
Lawrence Livermore Nat'l Lab
7000 East Avenue, L-365
Livermore, CA 94550-0611
_______________________________________________
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.

References: 
 >Re: Bash login shells with X11 (executing .bash_profile, .bashrc) (From: Lawrence You <email@hidden>)

  • Prev by Date: Re: Help: X11 Window Frames are gone
  • Next by Date: X11 Application development advice needed
  • Previous by thread: Re: Bash login shells with X11 (executing .bash_profile, .bashrc)
  • Next by thread: Re: Bash login shells with X11 (executing .bash_profile, .bashrc)
  • Index(es):
    • Date
    • Thread