aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/re4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/re b/bin/re
index 774c02c..6c4c257 100755
--- a/bin/re
+++ b/bin/re
@@ -79,11 +79,11 @@ shift
replace() {
FILE="$1"
# shellcheck disable=2094
- if ! sed "$REGEXP" < "$FILE" | cmp -s - "$FILE"; then
+ if ! sed -E "$REGEXP" < "$FILE" | cmp -s - "$FILE"; then
if [ ! -e "$FILE" ]; then
return 1
fi
- sed "$REGEXP" < "$FILE" | sponge "$FILE"
+ sed -E "$REGEXP" < "$FILE" | sponge "$FILE"
fi
}