fix BusyBox sed

BusyBox sed works the same way as GNU sed

Kubernetes-commit: 6885919986250c33af63933d95b30d1896a8dd07
This commit is contained in:
tipok 2020-02-28 11:06:30 +01:00 committed by Kubernetes Publisher
parent 33fb6c9168
commit b096826165

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