Merge 30f1bae54265336a12546fcefe10b5d8e5b8da71 into 40b6db6a2715628aa977ed1853fe5256704010ae

This commit is contained in:
猫咪恐慌 2025-04-03 03:56:52 +02:00 committed by GitHub
commit 912b327cc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -931,7 +931,7 @@ _sed_i() {
fi
}
if [ "$(echo abc | egrep -o b 2>/dev/null)" = "b" ]; then
if [ "$(echo abc | grep -E -o b 2>/dev/null)" = "b" ]; then
__USE_EGREP=1
else
__USE_EGREP=""
@ -939,7 +939,7 @@ fi
_egrep_o() {
if [ "$__USE_EGREP" ]; then
egrep -o -- "$1" 2>/dev/null
grep -E -o -- "$1" 2>/dev/null
else
sed -n 's/.*\('"$1"'\).*/\1/p'
fi