From b0968261655cf24f8b6401e1f3a679ea2ff45bd1 Mon Sep 17 00:00:00 2001 From: tipok Date: Fri, 28 Feb 2020 11:06:30 +0100 Subject: [PATCH] fix BusyBox sed BusyBox sed works the same way as GNU sed Kubernetes-commit: 6885919986250c33af63933d95b30d1896a8dd07 --- pkg/cmd/completion/completion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/completion/completion.go b/pkg/cmd/completion/completion.go index 367e7e38b..6b357cd51 100644 --- a/pkg/cmd/completion/completion.go +++ b/pkg/cmd/completion/completion.go @@ -233,7 +233,7 @@ autoload -U +X bashcompinit && bashcompinit # use word boundary patterns for BSD or GNU sed LWORD='[[:<:]]' RWORD='[[:>:]]' -if sed --help 2>&1 | grep -q GNU; then +if sed --help 2>&1 | grep -q 'GNU\|BusyBox'; then LWORD='\<' RWORD='\>' fi