Slashdot Mirror


Red Hat Nullifies Differences Between Bash, Csh

Andreas(R) writes "Red Hat Software has revealed that future versions of the distribution will hide the differences between command-line user interfaces, creating a 'more unified shell prompt experience'. 'I don't mind if they rebrand and unify the GNOME and KDE interfaces,' said one Linux longhair. 'Frankly, I rarely use GUIs. But when they start messing with my CLI, then it's personal. I'm not going to sit here and let Red Hat infect my beloved tcsh with those annoying quirks from bash." Ah, nothing like satire that only a small group will truly grok. *grin*

3 of 449 comments (clear)

  1. Re:Slashdot editor question by SnAzBaZ · · Score: 4, Informative

    If you hadn't noticed it's under the "funny/humour" catogory. Turn this catagory off in your preferences if you dont want it.

  2. Re:bash? csh? i give my users... by psamuels · · Score: 4, Informative
    I always thought the standard for false was zero and true was non-zero. Is if different for those two?

    As p3d0 said, shells behave the opposite. (Although there once was an odd bug in - what was it, Ultrix? - where csh behaved the opposite, i.e. didn't behave the opposite, i.e. was buggy, with regards to the && and || short-circuit operators. But then, csh history is replete with odd bugs.)

    But to expand on the point: in Unix, the exit status of a program is an integer (7 unsigned bits, anyway: trying to use more is not portable). Convention dictates that 0 is normal termination, non-zero is abnormal, and anything over 128 means it was killed by a signal rather than the exit() function. (Which signal? Subtract 128 to find out.) Furthermore, many programs document their various abnormal exit status numbers to mean various failure cases.

    Note that even MS-DOS (and all of its misshapen get) uses the zero / greater-than-zero convention. In DOS, a process's return value is called the "errorlevel", which indeed more accurately describes its main purpose.

    This convention also goes a little deeper in Unix. Most system calls and many C library functions (remember, the standard C library was first defined on Unix) return 0 for success (or similar concepts: "equality" in the string compare function strcmp()) and non-zero for failure ("inequality" in strcmp()). Even system calls which return other meaningful integers (open(), for example) generally use >=0 for success and -1 for failure.

    So it may make no sense from a boolean logic point of view but zero==true is surprisingly widespread. Mostly because there is often only one way to succeed at a task but many ways to fail, and it's useful to be able to report specific failure modes.

    --
    "How can you claim that you are anti-crack, while still writing a window manager?" — Metacity README
  3. Re:Question by jonnythan · · Score: 4, Informative
    Since you didn't read the FAQ like I said, here it is from Mr Slashdot himself:

    Personally, I have a pet peeve when people post comments saying things like "That's not News For Nerds!" and "That's not Stuff that Matters!" Slashdot has been running for almost 5 years, and over that time, I have always been the final decision maker on what ends up on the homepage. It turns out that a lot of people agree with me: Linux, Legos, Penguins, Sci (both real and fiction). If you've been reading Slashdot, you know what the subjects commonly are, but we might deviate occasionally. It's just more fun that way. Variety Is The Spice Of Life and all that, right? We've been running Slashdot for a long time, and if we occasionally want to post something that someone doesn't think is right for Slashdot, well, we're the ones who get to make the call. It's the mix of stories that makes Slashdot the fun place that it is.


    The home page is whatever Malda wants to make it. Slashdot started as Rob Malda's pet project, and that's basically what it will always be. It's an obscenely popular project and makes some money (maybe) now, but it's still his personal project.

    Deal with it. No one, especially Rob, cares what you think "should" be on the main page.