|
|
How Can I Tell What Shell Terminal Is Running?
|
|
|
|
Senior User
Join Date: Feb 2001
Location: Deer Crossing, CT
Status:
Offline
|
|
Like the subject says, how can I tell what shell terminal is running?
I don't see a reference to bash in terminal prefs, just tcsh. I can see tcsh in /usr/bin, but there is no bash. I'm assuming that bash would be called bash, but if I'm wrong, please correct me.
If somehow I didn't install the bash shell, how would I go about installing it from the Panther CDs?
I did an archive install on a stock 1.25GHz PowerBook, in case you were wondering.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: May 2000
Location: Caracas
Status:
Offline
|
|
I would use echo $SHELL, this can tell you what current shell is being used.
Miguel
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Mar 2001
Status:
Offline
|
|
bash and tcsh should both be in /bin. I think they should be present on every installation (they're not in the BSD subsystem package).
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
Originally posted by PBG4 User:
Like the subject says, how can I tell what shell terminal is running?
I don't see a reference to bash in terminal prefs, just tcsh. I can see tcsh in /usr/bin, but there is no bash. I'm assuming that bash would be called bash, but if I'm wrong, please correct me.
If somehow I didn't install the bash shell, how would I go about installing it from the Panther CDs?
I did an archive install on a stock 1.25GHz PowerBook, in case you were wondering.
Just type "ps". You should see something like this:
Code:
[arkham@flybook ~] ps
PID TT STAT TIME COMMAND
495 std S 0:00.06 -bash
[arkham@flybook ~]
For tcsh it would say that instead of bash.
bash is in /bin, not /usr/bin. Type "which bash" to see where it is. I'm sure you got it.
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status:
Offline
|
|
Why do you guys even bother replying?
MigP answered the question in the first response.
|
signatures are a waste of bandwidth
especially ones with political tripe in them.
|
|
|
|
|
|
|
|
Senior User
Join Date: Feb 2001
Location: Deer Crossing, CT
Status:
Offline
|
|
Originally posted by Kristoff:
Why do you guys even bother replying?
MigP answered the question in the first response.
Actually, I appreciate all the replies.
incandenza and Arkham_c took care of what would've been my next question, "Where can I find bash?". So, they've effectively killed 2 questions with one post.
Thanks folks. I will check out what shell I'm running (and switch to bash if necessary) once I get home tonight.
I guess my next question would be, what are the differences between the two shells? I want to run bash because I am doing Linux programming at school and bash is the default shell. So far I haven't run into any issues working with tcsh on OS X and bash on Linux, are there any gotchas between these two shells I should know about?
Thanks again for the helpful replies.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Mar 2001
Status:
Offline
|
|
Originally posted by Kristoff:
Why do you guys even bother replying?
MigP answered the question in the first response.
There was more than one question in the original post.
The value of your response is much more of a mystery.
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Feb 2001
Location: Deer Crossing, CT
Status:
Offline
|
|
It turns out I was still running tcsh. It was trivial to change to bash now that I know where it was on the disk. Thanks for all of your help.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|