diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2010-01-16 15:38:49 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2010-01-16 15:38:49 +0200 |
commit | ea0ee6a46b1aa7fcd847dfe3a3c277e603d047c6 (patch) | |
tree | a5ac96144048c06885f1f2e11c3f34891a684453 | |
parent | 878c9dd5c9fa8cf195d1246d2611fc19d7604408 (diff) | |
download | bash-completion-ea0ee6a46b1aa7fcd847dfe3a3c277e603d047c6.tar.gz |
Fix installing simple xspec completions on systems with non-GNU sed.
There's no alternation functionality ('\|' or '|') in POSIX BRE.
-rw-r--r-- | bash_completion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion index dea0b191..814c8765 100644 --- a/bash_completion +++ b/bash_completion @@ -1657,7 +1657,7 @@ _filedir_xspec() _expand || return 0 # get first exclusion compspec that matches this command - xspec=$( sed -ne $'/^complete .*[ \t]'${1##*/}$'\([ \t]\|$\)/{p;q;}' \ + xspec=$( awk "/^complete[[:space:]]+.*[[:space:]]${1##*/}([[:space:]]|\$)/ { print \$0; exit }" \ $BASH_COMPLETION ) # prune to leave nothing but the -X spec xspec=${xspec#*-X } |