From 8b92502eba93e7bf5992568f54d7a8711127b0a0 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Wed, 24 Jun 2026 22:42:15 +0100 Subject: [PATCH] uses grep -e instead of --regexp for POSIX compatibility --- http/bin/blog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/bin/blog b/http/bin/blog index d243596..6912db0 100755 --- a/http/bin/blog +++ b/http/bin/blog @@ -102,8 +102,8 @@ do export POST_TITLE="$name" cat "$entry" | eval "${postprocess_cmd}" > "$dest" else - export POST_TITLE="$(grep --regexp "^# " --max-count 1 "$entry" | cut -c3-)" - cat "$entry" | grep --regexp "^# " --invert-match | eval "$postprocess_cmd" > "$dest" + export POST_TITLE="$(grep -e "^# " --max-count 1 "$entry" | cut -c3-)" + cat "$entry" | grep -e "^# " --invert-match | eval "$postprocess_cmd" > "$dest" fi cat "$entry" | eval "$extract_args_cmd" > "${dest}.args" echo "Processed ${entry#$(dirname ${BLOGS})/} to ${dest#$(dirname ${SRC})/}"