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

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