Commit 6db8ae45 authored by neil's avatar neil
Browse files

fix for solaris

parent a7f3d413
...@@ -924,10 +924,10 @@ _sed_i() { ...@@ -924,10 +924,10 @@ _sed_i() {
} }
_egrep_o() { _egrep_o() {
if _exists egrep; then if _is_solaris; then
egrep -o "$1" 2>/dev/null
else
sed -n 's/.*\('"$1"'\).*/\1/p' sed -n 's/.*\('"$1"'\).*/\1/p'
else
egrep -o "$1"
fi 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