Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
15ee036d
Commit
15ee036d
authored
Jul 29, 2023
by
neil
Browse files
fix for solaris
parent
6db8ae45
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
15ee036d
...
@@ -923,11 +923,17 @@ _sed_i() {
...
@@ -923,11 +923,17 @@ _sed_i() {
fi
fi
}
}
if
[
"
$(
echo
abc | egrep
-o
b 2>/dev/null
)
"
=
"b"
]
;
then
__USE_EGREP
=
1
else
__USE_EGREP
=
""
fi
_egrep_o
()
{
_egrep_o
()
{
if
_is_solaris
;
then
if
[
"
$__USE_EGREP
"
]
;
then
sed
-n
's/.*\('
"
$1
"
'\).*/\1/p'
else
egrep
-o
"
$1
"
egrep
-o
"
$1
"
else
sed
-n
's/.*\('
"
$1
"
'\).*/\1/p'
fi
fi
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment