Skip to content

Commit 6885919

Browse files
committed
fix BusyBox sed
BusyBox sed works the same way as GNU sed
1 parent c73532c commit 6885919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/completion/completion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ autoload -U +X bashcompinit && bashcompinit
275275
# use word boundary patterns for BSD or GNU sed
276276
LWORD='[[:<:]]'
277277
RWORD='[[:>:]]'
278-
if sed --help 2>&1 | grep -q GNU; then
278+
if sed --help 2>&1 | grep -q 'GNU\|BusyBox'; then
279279
LWORD='\<'
280280
RWORD='\>'
281281
fi

0 commit comments

Comments
 (0)