fix BusyBox sed

BusyBox sed works the same way as GNU sed
This commit is contained in:
tipok 2020-02-28 11:06:30 +01:00
parent c73532c4f7
commit 6885919986
No known key found for this signature in database
GPG Key ID: B3554388EBC279F1

View File

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