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."

48 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 beav007 · · Score: 2, Funny

      You got married on Christmas?

    4. 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 */
    3. Re:patience by TeXMaster · · Score: 2, Funny
      Or Star Wars Episode I?

      Uh ... wait a sec ...

      --
      "I'm never quite so stupid as when I'm being smart" (Linus van Pelt)
  4. Circular what? by palegray.net · · Score: 2, Funny

    So, I'm gonna grab the source to BASH and compile it using GCC under BASH? My brain hurts :).

    1. 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
    2. 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!
    3. Re:Circular what? by fulldecent · · Score: 5, Funny

      Your mom?

      --

      -- I was raised on the command line, bitch

    4. Re:Circular what? by SatiricComet · · Score: 5, Funny

      Visual Studio 2008?

    5. Re:Circular what? by glwtta · · Score: 2, Funny

      Bash?

      --
      sic transit gloria mundi
    6. Re:Circular what? by Ant+P. · · Score: 4, Funny

      EGCS, duh.

  5. Bugs by microbee · · Score: 2, Funny

    The new major release fixes several remaining bugs in the 3.x releases

    That's great, but they forgot to mention how many new bugs were introduced.

  6. Re:Linux by Anonymous Coward · · Score: 5, Funny

    Still gay.

    Don't bash it dude.

  7. 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
    1. Re:My Dr. Seuss observation... by garyebickford · · Score: 2, Funny

      I've been making a hash of BASH for years! Just ask the folks who review my code!

      --
      It's easier to be a result of the past, but more fun to be a cause of the future! http://www.spacefinancegroup.com/
  8. 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!
    6. Re:Screenshots? by windsurfer619 · · Score: 2, Funny

      --
      :(){ :|:& };: Go!

      Does your sig still work? I heard they fixed that. You should try it.

  9. 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
  10. 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!

  11. After bootstrapping... by Dareth · · Score: 2, Funny

    After bootstrapping the new compiler with the old compiler, you can then use your new compiler to compile the new compiler code.

    If this bothers you, stay away from recursion!

    --

    I only look human.
    My mother is a halfling and my dad is an ogre, so that makes me an Ogreling
    1. Re:After bootstrapping... by JoCat · · Score: 2, Funny

      To learn recursion you must first learn recursion.

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

    Please, no more GNU bashing.

  13. 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!
  14. Re:looks like it still loses history by Froze · · Score: 2, Funny

    BASH doesn't like it when you anthropomorphize it. ;-)

    --
    -- The morphemes of your disquisition are ascertainable, but they have eschewed an ambit of transpicuous exposition.
  15. Re:looks like it still loses history by Anonymous Coward · · Score: 1, Funny

    Wait a minute, you just said BASH doesn't like it when you anthropomorphize it.

    We'll never get out of this one you know...

  16. Re:Bourne Shell by vlm · · Score: 2, Funny

    Tru64. That's three off the top of my head.

    What, three users or three installed servers?

    Tru64 has been abandonware for four long years and will have no commercial support in only three years.

    To quote the great wikipedia:

    In December 2004, HP announced a change of plan; they would instead use the Veritas file system and abandon the Tru64 advanced features. In the process, many of the remaining Tru64 developers were laid off.[8]

    In July 2007, HP stated that they would continue to support Tru64 UNIX until at least 2012.

    You'd get more support by complaining that VMS, MVS/370, and TRS-DOS 1.3 don't come with BASH.

    --
    "Science flies us to the moon. Religion flies us into buildings." - Victor Stenger
  17. 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?
  18. Re:looks like it still loses history by Anonymous Coward · · Score: 1, Funny

    Vroaam.

  19. 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 ardor · · Score: 2, Funny

      Ah! A command-line neutron bomb?

      I am sure Linux is ready for the desktop now.

      --
      This sig does not contain any SCO code.
    2. Re:Ant-style ** globbing by WhitefishMT · · Score: 5, Funny

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

  20. 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.
  21. 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.

  22. Re:And? by 93+Escort+Wagon · · Score: 2, Funny

    What's the point? It's worthless on my multi-touch screen. Only crusted headed, unbathed, girlfriendless uber geeks need to use the CLI.CLI's are so 1940's Get with the times you gezzers.

    Hey, I am not an "uber"!

    --
    #DeleteChrome
  23. 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.
  24. 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?

  25. Re:So? by Dreadneck · · Score: 2, Funny

    Gentoo uses bash for their init scripts citing reasons of speed.

    Weird, because Debian moving away from bash to dash for exactly the same reasons.

    Like the way Red Hat uses nash?

    Or the way Microsoft uses cash?

    I apologize, but I saw the opening and had to take the shot.

    --
    Power does not corrupt - power attracts the corrupt.