Which shell do you use ?

Which shell do you use?


  • Total voters
    5

SPeedY_B

I may actually be insane.
Joined
31 Mar 2002
Messages
15,807
Just out of curiosity, as some people have a preference on the shell they use, and Apple changed their mind away from TCSH in 10.3 and 10.4 in favour of Bash (although TCSH is still present, of course).
 
Whatever is standard 😛. Anything that has tab completion does it for me.

So that includes:
bash
tcsh
csh

On root on FreeBSD boxen you have csh as standard shell. For user it is sh, so i usually rig my login scripts to exec csh. Bash is standard shell for root and user on linux, where they don't have sh, so sh is just a symlink to bash. (which BTW causes a lot of Linux scripts to break under FreeBSD as it is calling the real sh, not bash).

Besides that, i have no preferences.
 
BTW, in Panther bash is standard:

bitesize:~ xistence$ env
SHELL=/bin/bash
bitesize:~ xistence$ tcsh
[bitesize:~] xistence%
 
X-Istence said:
BTW, in Panther bash is standard:

bitesize:~ xistence$ env
SHELL=/bin/bash
bitesize:~ xistence$ tcsh
[bitesize:~] xistence%
Yup, mentioned that in the first post.
 
Well, in my last mac i used bash... in my new mac i will probably still use bash. Quite simply because its default and it works. Is there any pros/cons for the two?
 
Not really. Bash is GPL'ed and TCSH is BSD licensed i believe. That's the only difference.
 
on any machine that I setup I always use tcsh, the exception being on my mac and thats just cause I am too lazy, I will probably change it soon though.

the main reason why I prefer tcsh over bash is history completion

if you type in a command and run it you might want to run it again, in both tcsh and bash from a blank prompt you can press the up arrow until you find it.

if however you type in one character of the command and press up in tcsh or bash they now act differently, bash will just go to your previous command. tcsh on the other hand will use this character to narrow the search of your previous commands, so you will be able to search a smaller subset of your command history for the command you want.

This one thing is the reason why I prefer to use tcsh over bash.
 
Ooh, I didn't know that. Might give tcsh a trial run sometime 🙂
 

Members online

No members online now.

Forum statistics

Threads
62,021
Messages
673,242
Members
5,642
Latest member
osipov
Back
Top