bash-completion: use replacement instead of sed

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2019-09-02 13:44:38 +02:00
parent a000c1943d
commit a02e57dde8

View File

@@ -195,7 +195,7 @@ _cli_bash_autocomplete() {
-*) -*)
;; ;;
*) *)
command=$(echo "${words[$counter]}" | sed 's/-/_/g') command="${words[$counter]//-/_}"
cpos=$counter cpos=$counter
(( cpos++ )) (( cpos++ ))
break break