Slashdot Mirror


Apple Switches tcsh for bash

gklinger writes "AppleInsider is reporting that Apple has switched from tcsh to bash in the the latest developer build (7B44) of Mac OS X 10.3 (Panther). There is speculation that the switch was made to appeal to Linux users. Experienced users get pretty religious about their shells so what remains to be seen is how diehard tcsh users will react." I don't know about appealing to Linux users in particular, but I just don't know many people who prefers tcsh these days, on any platform. It seems like everyone is using bash or zsh.

14 of 265 comments (clear)

  1. zsh and BASH? Not me... by squiggleslash · · Score: 3, Insightful
    Now, I'm a pdksh guy. I know it's old, it's not even based on the latest version of "real" KSH, but it does what I need and there's no funny stuff with the back arrow. (bash lets you edit your command history, which 99% of the time you do unintentionally and I've never figured out how to undo the damage.)

    Needless to say, pdksh is available for OS X too but you need to download and install it.

    It's great. Does exactly what I want out of a shell.

    --
    You are not alone. This is not normal. None of this is normal.
  2. Re:*CSH IS DYING by computerme · · Score: 4, Insightful

    you can do updates from the command line...

    as for emacs...

    I found this:

    http://www.porkrind.org/emacs/

    In under three seconds. Geez...

    And btw, It already is REAL unix, and not only is it the highest volume shipping version of unix on the planet, but apple did what NO other software company has been able to do in the 30+ year history of unix. The made it usable by the masses.

    Care to give them at least an ounce of credit now?

  3. Re:One of my biggest girpes about OS X by tha_mink · · Score: 3, Insightful

    Can you not change shells in OSX? If you can_ What's the big deal what the "default" shell is?

    If you can't change shells_ then that's just plain weak.

    --
    You'll have that sometimes...
  4. Re:One of my biggest girpes about OS X by computerme · · Score: 5, Insightful

    yes you can. Some people just like to complain. It makes them feel better or something...

  5. Couldnt anyone that really cares... by ErisCalmsme · · Score: 5, Insightful

    just install whatever shell they wanted to use anyway? Im sure anyone that has shell scripting in mind also knows how to install their own shell the correctly right?

    --
    Chaos is Divine *
  6. tcsh user by hubertf · · Score: 3, Insightful

    count me in for long-time tcsh users.
    It's not that I'm die-hard fanatic over it, but when I started using Unix there was only tcsh as a comfort shell, no bash. And why switch when tcsh works well.

    - Hubert

  7. I use tcsh as my interactive shell. by molo · · Score: 4, Insightful

    tcsh works perfectly well as an interactive shell. It has some severe problems when it comes to scripting, so I do my scripting in portable bourne shell.. but tcsh is perfectly functional as an interactive shell. I use it under linux, solaris, aix, hpux, and cygwin without issue.

    That said, I'm not surprised that apple change to a bourne-compatible shell. Bourne has been the unix standard for a long time, so changing to this makes sense. It means that all of the unix examples out there will work out of the box and not have to be translated into csh syntax. This is probably a good thing. People can still exec tcsh if they like.

    -molo

    --
    Using your sig line to advertise for friends is lame.
  8. Re:This is not a good thing by 4of12 · · Score: 3, Insightful

    writing non-trivial scripts

    I read the reasons not to use csh for scripting after I had spent about 10 years or so with csh from BSD days.

    Even though I now run bash for an interactive shell (tcsh would probably be just as good with emacs style command line editing), I'm careful to limit myself to plain Bourne shell for scripts, since those are more portable than anything - I think that's why autoconf is successful.

    The modern languages are good for serious scripting, as a glue language, for projects where you're willing to port the language and any needed libraries to the new platform.

    But for a gopher build script, poking its head up in the dark of an unknown flavo[u]r of UNIX, sh is the True Path.

    --
    "Provided by the management for your protection."
  9. Would someone please tell me... by cryptochrome · · Score: 4, Insightful

    What's so great about bash and/or zsh? Now that I've gotten used to tcsh I'm not sure why it should change. They all seem pretty much the same to me, except the do the same things in slightly different ways.

    If you ask me, the default shell should be whichever one with a history that loads the fastest. Many os x users only use terminal.app for the occasional foray into command-line-only commands (like me). Waiting for your shell to load are precious seconds wasted.

    --

    ---If you can't trust a nerd, who can you trust?

  10. How diehard tcsh users will respond: by ivan256 · · Score: 4, Insightful


    bash-2.04$ chsh /bin/tcsh

  11. Re:But tcsh is nice! by phaze3000 · · Score: 3, Insightful
    --
    Blaming GW Bush for the Iraq war is like blaming Ronald McDonald for the poor quality of food.
  12. Now, about "ps" by The+Bum · · Score: 4, Insightful

    This is a mild gripe, but I'd like to see a version of "ps" that follows the Linux conventions for arguments. I work with three *nix operating systems: OS X, Linux, and HP-UX. The arguments are mostly the same between Linux and HP-UX, e.g. "ps -ef" for a listing of all processes. I invariably try typing that same command in OS X, only to remember, after being told that the arguments are invalid, that the equivalent command is "ps -ax". Annoying!

  13. Re:But tcsh is nice! by Van+Halen · · Score: 3, Insightful
    This one doesn't always save me -- one of my common typos is to repeat the 'd' when changing directory, thus:

    % cdd ~/Desktop/

    Do you, by any chance, happen to use an Apple Pro keyboard with your Mac? The one with the black keys? I'm pretty sure this is a quirk of that keyboard because it happens to me all the time, but ONLY on that keyboard. I finally gave up and put alias cdd cd in my .tcshrc.

    On the subject of switching to bash, I've been using tcsh since I started with Unix 11 years ago. I'd be happy to switch, but I need to be able to translate all the 'comfort' features that I've grown accustomed to over the years. Those occasional times when I have to use a bash command-line, I find that it does do most of the features I like about tcsh (tab completion is by far the biggest; autocorrection rocks) but it's usually a bit different (I haven't bothered to read up on how to turn off the beep, which I hate!). Even if bash is so much better than tcsh, I'm still gonna need to have all my settings about the same, or I don't care if it's more powerful! :)

    I may try it for a bit out of laziness when I get Panther, but then I wouldn't be surprised if I switch back to tcsh pretty quickly...

  14. it was a "licensing" issue by fricc · · Score: 3, Insightful

    bash is GPL and zsh is Berkeley, Apple seemed to be afraid of GPL at the beginning and has taken a more practical stance more recently...