1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 05:08:42 +02:00

Do not strip colon from COMP_WORDBREAKS (bnc#915037)

Work around the libreadline colon trouble if COMP_WORDBREAKS includes the colon as regular word break. Side effect is that user now do not see the full project name anymore but only the subprojects.

Signed-off-by: Werner Fink <werner@suse.de>
This commit is contained in:
Werner Fink
2013-12-19 15:38:45 +01:00
committed by Bernhard M. Wiedemann
parent a80b286ac9
commit 9f76dc0777
2 changed files with 16 additions and 12 deletions

1
dist/complete.sh vendored
View File

@@ -1,7 +1,6 @@
test -z "$BASH_VERSION" && return
complete -o default _nullcommand >/dev/null 2>&1 || return
complete -r _nullcommand >/dev/null 2>&1 || return
COMP_WORDBREAKS="${COMP_WORDBREAKS//:}"
test -s /usr/share/osc/complete && complete -o default -C /usr/share/osc/complete osc
test -s /usr/lib64/osc/complete && complete -o default -C /usr/lib64/osc/complete osc
test -s /usr/lib/osc/complete && complete -o default -C /usr/lib/osc/complete osc