fix BusyBox sed (#6340)

BusyBox sed works the same way as GNU sed

Signed-off-by: tipok <me@tipok.pro>
pull/6351/head
Anton 5 years ago committed by Martin Hickey
parent 5bf7ca688f
commit 98a6fc5a3a

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

Loading…
Cancel
Save