Which shell do you use ?

Discussion in 'Macintosh' started by SPeedY_B, Aug 27, 2005.

?
  1. Bash

    100.0%
  2. Tcsh

    0 vote(s)
    0.0%
  1. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    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).
     
  2. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Whatever is standard :p. 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.
     
  3. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    BTW, in Panther bash is standard:

    bitesize:~ xistence$ env
    SHELL=/bin/bash
    bitesize:~ xistence$ tcsh
    [bitesize:~] xistence%
     
  4. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Yup, mentioned that in the first post.
     
  5. sean.ferguson

    sean.ferguson Moderator Folding Team

    Messages:
    1,693
    Location:
    Fife; Scotland
    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?
     
  6. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Pretty much what I was wondering :)
     
  7. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Not really. Bash is GPL'ed and TCSH is BSD licensed i believe. That's the only difference.
     
  8. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    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.
     
  9. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Ooh, I didn't know that. Might give tcsh a trial run sometime :)