Note: these instructions are for versions of OS X prior to 10.2 only!!! 
Do not use on 10.2.x ("Jaguar")!!!

If you still are using an older version of OS X, and want bash, 
 and I'll send you
a copy of the installer.

The instructions on how to install it are included below. 

If you want the source code, you can get it here. Bash is brought to you by 
The Free Software Foundation.
Direction for installing Bash 2.05 for Mac OS X (prior to 10.2!!!):



 the file bash-2.0.5-osx.tgz and note its location on your hard drive.

THIS IS VERY IMPORTANT:

cd /

You must change to the root directory as shown above.

Expand the archive by typing sudo tar xvzf path/to/archive/bash-osx.tar.gz
path/to/archive/ is wherever you put the file when you downloaded it.
Example: /'Macintosh HD'/myfiles/bash-2.0.5-osx.tgz (note the use of single quotes to escape spaces).

You will be prompted for your administrator password.

The files will be installed as follows:

bash    -----> /bin/bash
bashbug -----> /bin/bashbug
bash.1  -----> /usr/local/man/man1/bash.1
bashbug -----> /usr/local/man/man1/bashbug.1
profile -----> /etc/profile (see note*)
bash.info ---> /usr/local/info/bash.info
libdl.dylib ----> /usr/local/lib/libdl.dylib
bash-osx.html (this file) ---> /usr/local/info/bash-osx.html

If you already have /etc/profile, back it up first!

in addition, in order to have profile run whenever you invoke a new shell,
copy /etc/profile as follows:
profile -----> $HOME/.bashrc (user's home directory, optional*)
profile -----> /var/root/.bashrc (root's home directory, also optional*)

*Note: .bashrc will run when user invokes a new shell (eg "su" command)
You can edit profile and .bashrc to change your prompt, etc. 

Warning: this profile includes the Mac OS X defaults for the PATH
settings. If you require different or additional paths, you must edit it!

Now go to terminal preferences, and change the default shell to /bin/bash
(to change it back again, change it to /bin/tcsh)

sudo niutil -createprop / /users/username shell /bin/bash

where "username" is each user you want to include (including root). Again, you will be prompted for a password.

This last command will make bash the default shell if you log in remotely.

Note: to enable remote login, do this:

sudo niutil -createprop -t localhost/local /localconfig/autologin[space]
username user_to_log_in

Enjoy. 03-08-2003