Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Maytag repairman moving from TCSH to BASH. [OPEN]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
gentsquash
l33t
l33t


Joined: 03 Nov 2004
Posts: 753
Location: Still a Gentoo beginner.

PostPosted: Fri Dec 24, 2004 8:59 pm    Post subject: Maytag repairman moving from TCSH to BASH. [OPEN] Reply with quote

Tho' still a rank beginner, I have become a Gentoo enthusiast.
It seems that more Gentooers use BASH than TCSH, so I have
decided to switch. I have skimmed the BASH man-page, but would
still appreciate any as-explicit-as-possible answers to the
following beginner's questions.

Q1: What is a/the proper mantra to put in a to-be-sourced script
that says

"If the calling shell is non-interactive, then exit this script".



Q2: Is there a global place to put bash aliases/functions that
will be read in for all users (or all non-root users) for ALL
interactive shells? (whether or not it is a login-shell)

o It seems that "/etc/profile" is only read by login-shells.

o If possible, I'd like a global solution. In particular, I
don't want to assume that users even HAVE a "~/.bash_profile" file.


Q2': For interactive, but non--login shells, WHERE is the prompt
PS1 set? Is that a script where it is reasonable to have a
global-place-for-aliases script sourced?


https://forums.gentoo.org/viewtopic.php?p=1911426#1911426
_________________
Your thread resolved? Putting [SOLVED] in its title helps all Gentooers. (Button "edit" , first post)
Prof. Jonathan LF King, Mathematics dept., University of Florida
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum