Commit 540fe23b authored by Anton's avatar Anton Committed by Martin Hickey

fix BusyBox sed (#6327)

BusyBox sed works the same way as GNU sed
Signed-off-by: 's avatartipok <me@tipok.pro>
parent efc42294
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment