Bash version ${bash_version}.${bash_patchlevel} - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version ${bash_version}.${bash_patchlevel}

      View the most recent changes for the bash port at: bash.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for bash.
      The raw portfile for bash ${bash_version}.${bash_patchlevel} is located here:
      http://bash.darwinports.com/dports/shells/bash/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/bash


      The bash Portfile 57744 2009-09-16 01:28:19Z raimue macports.org $

      PortSystem 1.0

      Name: bash
      set bash_version 4.0
      set bash_patchlevel 33
      Version: ${bash_version}.${bash_patchlevel}
      distname ${name}-${bash_version}
      Category: shells
      Maintainers: raimue
      Description: Bash (bourne-again shell) is a UNIX command interpreter
      Long Description: Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. It offers functional improvements over sh for both programming and interactive use. In addition, most sh scripts can be run by Bash without modification.
      Homepage: http://www.gnu.org/software/bash/bash.html
      Platform: darwin freebsd

      Master Sites: gnu
      patch_sites gnu:${name}/${distname}-patches
      Checksums: ${distname}${extract.suffix} md5 a90a1b5a6db4838483f05438e05e8eb9 sha1 2bbed30879f9f424c091a846a48111c27d0b2370 rmd160 82aba4b2cb475c2030904a9d22af6208dfa85eb3

      eval {
      set low 1
      while {$low <= $bash_patchlevel} {
      set high [expr $low + 99];
      if {$high < $bash_patchlevel} {

      ###
      # disabled because there haven't been a hundred patches for bash yet
      # and there's no way to tell the format in advance

      # patchfiles-append [format "%s.%03d-%03d.gz" $bash_version $low $high]
      # incr low 100

      } else {
      patchfiles-append [format "%s%s-%03d" $name [strsed ${bash_version} {g/\.//}] $low]
      incr low 1
      }
      }
      }

      depends_build bin:grep:grep bin:bison:bison
      depends_lib port:gettext port:readline

      configure.ldflags-append "-Wl,-search_paths_first -lncurses"
      configure.args --mandir=${prefix}/share/man --with-installed-readline --infodir=${prefix}/share/info

      if {[variant_isset universal]} {
      configure.args-append "CFLAGS_FOR_BUILD=\"${configure.universal_cflags}\""
      }

      include checksums_patch

      livecheck.type regex
      livecheck.url http://ftp.gnu.org/gnu/${name}/${name}-${bash_version}-patches/?C=M&O=D
      livecheck.version [format %03d ${bash_patchlevel}]
      livecheck.regex ${name}[strsed ${bash_version} {g/\.//}]-(\\d\\d\\d)

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/bash
      % sudo port install bash
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching bash
      ---> Verifying checksum for bash
      ---> Extracting bash
      ---> Configuring bash
      ---> Building bash with target all
      ---> Staging bash into destroot
      ---> Installing bash
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using bash with these commands:
      %  man bash
      % apropos bash
      % which bash
      % locate bash

     Where to find more information:

    Darwin Ports



    Lightbox this page.