From ea0ee6a46b1aa7fcd847dfe3a3c277e603d047c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 16 Jan 2010 15:38:49 +0200 Subject: Fix installing simple xspec completions on systems with non-GNU sed. There's no alternation functionality ('\|' or '|') in POSIX BRE. --- bash_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.1