diff options
| author | Misty De Meo | 2014-02-27 23:56:04 -0800 | 
|---|---|---|
| committer | Misty De Meo | 2014-02-27 23:56:04 -0800 | 
| commit | 6bc3b2b02fa9b6e672c411521c1f6e23d1f7ca9d (patch) | |
| tree | e6b0e6f1017c158802a3e404c1d3226d30f81971 | |
| parent | 348a61eb46376c97dbb6a01632165898e1d95d3e (diff) | |
| download | homebrew-6bc3b2b02fa9b6e672c411521c1f6e23d1f7ca9d.tar.bz2 | |
bash-completion: upstream fix for GNU extended regex
This bug is fixed in HEAD, but the patch doesn't apply cleanly to the
1.x source so we can't link directoy to the commit.
| -rw-r--r-- | Library/Formula/bash-completion.rb | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/Library/Formula/bash-completion.rb b/Library/Formula/bash-completion.rb index ea63c5b03..73509e904 100644 --- a/Library/Formula/bash-completion.rb +++ b/Library/Formula/bash-completion.rb @@ -8,6 +8,10 @@ class BashCompletion < Formula    mirror 'http://pkgs.fedoraproject.org/repo/pkgs/bash-completion/bash-completion-1.3.tar.bz2/a1262659b4bbf44dc9e59d034de505ec/bash-completion-1.3.tar.bz2'    sha1 '6a46b93f44c56cc336632ab28d90c0595fbcc98f' +  # Backports the following upstream patch from 2.x: +  # http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=patch;h=50ae57927365a16c830899cc1714be73237bdcb2 +  def patches; DATA; end +    def compdir      etc/'bash_completion.d'    end @@ -37,3 +41,18 @@ class BashCompletion < Formula      EOS    end  end + +__END__ +diff --git a/bash_completion b/bash_completion +index 6601937..5184767 100644 +--- a/bash_completion ++++ b/bash_completion +@@ -1334,7 +1334,7 @@ _known_hosts_real() +  +     # append any available aliases from config files +     if [[ ${#config[@]} -gt 0 && -n "$aliases" ]]; then +-        local hosts=$( sed -ne 's/^[ \t]*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\{0,1\}['"$'\t '"']\{1,\}\([^#*?]*\)\(#.*\)\{0,1\}$/\2/p' "${config[@]}" ) ++        local hosts=$( sed -ne 's/^['"$'\t '"']*[Hh][Oo][Ss][Tt]\([Nn][Aa][Mm][Ee]\)\{0,1\}['"$'\t '"']\{1,\}\([^#*?]*\)\(#.*\)\{0,1\}$/\2/p' "${config[@]}" ) +         COMPREPLY=( "${COMPREPLY[@]}" $( compgen  -P "$prefix$user" \ +             -S "$suffix" -W "$hosts" -- "$cur" ) ) +     fi | 
