fix BusyBox sed (#6340)

BusyBox sed works the same way as GNU sed

Signed-off-by: tipok <me@tipok.pro>
This commit is contained in:
Anton 2019-09-03 10:44:29 +02:00 committed by Martin Hickey
parent 5bf7ca688f
commit 98a6fc5a3a

View file

@ -194,7 +194,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