Merge pull request #82181 from tipok/master

fix BusyBox sed
This commit is contained in:
Kubernetes Prow Robot 2020-04-14 14:02:03 -07:00 committed by GitHub
commit 1d772e3b36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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