fix BusyBox sed (#6327)

BusyBox sed works the same way as GNU sed

Signed-off-by: tipok <me@tipok.pro>
pull/6346/head
Anton 5 years ago committed by Martin Hickey
parent efc422940c
commit 540fe23b69

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