Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > changing shells

changing shells
Thread Tools
JoelMG
Guest
Status:
Reply With Quote
Dec 29, 2000, 12:23 AM
 
I received a book on Shell Programming for the holidays. The book only covers Bourne-type shells.

So I am trying to switch shells, using a primer on UNIX commands for guidance.
When I type cat /etc/shells, the list includes bash. I infer that means that bash shell is on the computer.

However, i am not able to swtich shells. When I use the chsh commands, somehow I find myself in the vi text editor ???!! Also, the preferences menu item from the terminal menubar does not allow me to change to /bin/bash.

So, I'd appreciate any comments. Are there REALLY different shells contained in Mac OS X PB? Or do I need to install one? Is a Bourne shell available somewhere for the Mac?

Thank you! Joel
     
powert
Guest
Status:
Reply With Quote
Dec 29, 2000, 10:42 AM
 
Don't u just type 'sh' to change to bourne shell?? Root during startup uses bourne... see /etc/rc.common

     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Dec 29, 2000, 12:24 PM
 
Well there's sh and zsh which are closer to bourne shells than tcsh and csh (the c shells). bash is available as a precompiled binary, go look for it =P

It's at: http://www.osxfaq.com/downloads/mirr...ash2.04.tar.gz
and probably on stepwise's softrak too.
Or you could compile your own copy if you d/led the devtools.
     
JoelMG
Guest
Status:
Reply With Quote
Dec 30, 2000, 08:19 AM
 
Thank you. Yes, the command sh works. Also, I'll get get the bash download.

You guys are great.

Joel
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:22 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2