Slashdot Mirror


BASH 4.0 Released

An anonymous reader writes "The widely used Bourne-Again Shell (BASH) version 4.0 is out. The new major release fixes several remaining bugs in the 3.x releases, and introduces a bunch of new features. The most notable new features are associative arrays, improvements to the programmable completion functionality, case-modifying word expansions, co-processes, support for the `**' special glob pattern, and additions to the shell syntax and redirections. The shell has been changed to be more rigorous about parsing commands inside command substitutions, fixing one piece of POSIX non-compliance. Most of us will probably wait for the distros to test the new version and upgrade gradually, but you always have the option of grabbing the source and compiling it yourself. Enjoy."

32 of 459 comments (clear)

  1. This is excellent news by Anonymous Coward · · Score: 5, Funny

    Perhaps this year, Linux will be ready for the desktop.

    1. Re:This is excellent news by mrsteveman1 · · Score: 5, Funny

      No, but it'll be ready for the year of the commandline (comes right after year of the hippo).

    2. Re:This is excellent news by Anonymous Coward · · Score: 4, Funny

      So... when can we expect the year of the L(inux)user?

    3. Re:This is excellent news by thefekete · · Score: 3, Funny

      In fact, most users are not ready to operate computers, et al.

      Fixed it for you...

      --
      The cool things is to have windows that bounce up and down like a good tits.
  2. Re:csh syntax mode? by ichthus · · Score: 5, Funny

    Already there. Just type 'csh' and bash will enter csh-compatibility mode. For scripting, just replace your #!/bin/bash with #!/bin/csh and away you go.

    --
    sig: sauer
  3. patience by Anonymous Coward · · Score: 5, Funny

    i'll wait for 4.2

    1. Re:patience by Anonymous Coward · · Score: 3, Funny

      I see what you did there with the clever alluding to another...nevermind...

    2. Re:patience by Tarlus · · Score: 4, Funny

      Give me a K..DE!

      You tried to say 'KDE' but there was a lag before it completed... Just like true KDE4!

      *Runs away*

      --
      /* No Comment */
  4. Re:Linux by Anonymous Coward · · Score: 5, Funny

    Still gay.

    Don't bash it dude.

  5. My Dr. Seuss observation... by drakaan · · Score: 4, Funny

    "...The most notable new features are associative arrays..."

    So now I can make a BASH hash, sweet!

    --
    "Murphy was an optimist" - O'Toole's commentary on Murphy's Law
  6. Re:Circular what? by Locklin · · Score: 4, Funny

    stay away from kernel.org then.

    --
    "Knowledge is the only instrument of production that is not subject to diminishing returns" -Journal of Political Econom
  7. Screenshots? by dsginter · · Score: 5, Funny

    Does anyone have any screenshots? I always hate that when they post some great new upgrade without any screenshots.

    --
    More
    1. Re:Screenshots? by NonUniqueNickname · · Score: 5, Funny
      Here are a couple of screen shots. First one running as regular user. Second one running as root.

      $

      #

    2. Re:Screenshots? by lawaetf1 · · Score: 4, Funny

      Here you go..

      [root@localhost ~]#

      --
      CommentBot 0.7a running with args "-module irritate,disagree -target random"
    3. Re:Screenshots? by MikeBabcock · · Score: 4, Funny

      I was really hoping someone would post a picture of a half-rotated Compiz cube with a bash shell running transparently on it.

      --
      - Michael T. Babcock (Yes, I blog)
    4. Re:Screenshots? by MMC+Monster · · Score: 4, Funny

      Anyone have a high-res screen shot? My fonts are raster based. :-(

      --
      Help! I'm a slashdot refugee.
    5. Re:Screenshots? by dmsuperman · · Score: 4, Funny
      --
      :(){ :|:& };: Go!
  8. Note for sysadmins by 93+Escort+Wagon · · Score: 4, Funny

    With your production boxes, it's generally recommended that you wait for Bash 4.0 SP1 before deploying.

    --
    #DeleteChrome
  9. Re:csh syntax mode? by Doug+Neal · · Score: 5, Funny

    This is great, but I find the csh syntax easier to use from the command line (however unsafe it is to use in scripts). Will they add a csh compatability mode to bash?

    ln -s /bin/false /bin/csh

    99% of the functionality of csh, without the bugs!

  10. Re:Circular what? by Hatta · · Score: 5, Funny

    Sup dawg, I heard you liked compiling, so I put a compiler in your compiler so you can compile while you compile.

    --
    Give me Classic Slashdot or give me death!
  11. Re:Zsh has had these features for years by Curate · · Score: 3, Funny

    Please, no more GNU bashing.

  12. Re:Zsh has had these features for years by Hatta · · Score: 5, Funny

    Excellent post. I look forward to the ensuing flame war.

    --
    Give me Classic Slashdot or give me death!
  13. Re:Circular what? by fulldecent · · Score: 5, Funny

    Your mom?

    --

    -- I was raised on the command line, bitch

  14. Re:Zsh has had these features for years by Just+Some+Guy · · Score: 4, Funny

    I also found the vi mode in zsh to be inferior to the equivalent in bash last time I tried it, but maybe it's improved since then.

    That's because Emacs's bindings are far more logical than Vi's, especially when running on FreeBSD instead of Linux. Oh, and indent with spaces.

    Did I miss anything?

    --
    Dewey, what part of this looks like authorities should be involved?
  15. Re:Circular what? by SatiricComet · · Score: 5, Funny

    Visual Studio 2008?

  16. Ant-style ** globbing by Rayban · · Score: 4, Funny

    Instead of rm -rf /, we can now just say

    rm -f /**

    Now that's an improvement!

    --
    æeee!
    1. Re:Ant-style ** globbing by WhitefishMT · · Score: 5, Funny

      So they've finally perfected the Gnu-tron bomb!

  17. Re:something resembling homepage by Tweenk · · Score: 5, Funny

    Are you smoking something? This is a GNU project. The "web page" is actually a facade to appease the unenlightened. Here is a Web 1.0 concept mapping for you:

    news page -> "announce" mailing list
    wiki -> "user" mailing list, documentation
    developer forum -> "dev" mailing list
    release notes -> in the tarball!

    --
    Those who would give up liberty to obtain working drivers, deserve neither liberty nor working drivers.
  18. Re:Circular what? by Ant+P. · · Score: 4, Funny

    EGCS, duh.

  19. Yes!!! by commodoresloat · · Score: 5, Funny

    This is definitely the turning point; the Register just last week published an article indicating that the one thing stopping most users from migrating from Windows was the lack of support for the `**' special glob pattern.

  20. Re:true... by lilomar · · Score: 3, Funny

    Use i.e. as a stand-in for "that is."

    I prefer to use Firefox.

    --
    The creator of this post (Jacob Smith) hereby releases it, and all of his other posts, into the public domain.
  21. Re:csh syntax mode? by Random+BedHead+Ed · · Score: 4, Funny

    WHOOOSH

    I was following this discussion of bash, sh, csh and tcsh perfectly well, but now I'm lost. What shell are you talking about?