fix BusyBox sed

BusyBox sed works the same way as GNU sed

Signed-off-by: tipok <me@tipok.pro>
pull/6327/head
tipok 6 years ago
parent 70af7ba4db
commit 3d485dab17
No known key found for this signature in database
GPG Key ID: B3554388EBC279F1

@ -194,7 +194,7 @@ autoload -U +X bashcompinit && bashcompinit
# use word boundary patterns for BSD or GNU sed # use word boundary patterns for BSD or GNU sed
LWORD='[[:<:]]' LWORD='[[:<:]]'
RWORD='[[:>:]]' RWORD='[[:>:]]'
if sed --help 2>&1 | grep -q GNU; then if sed --help 2>&1 | grep -q 'GNU\|BusyBox'; then
LWORD='\<' LWORD='\<'
RWORD='\>' RWORD='\>'
fi fi

Loading…
Cancel
Save