From aa4f63a8ce88579fa5aa23d3345d302e26f9d9d7 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Wed, 24 Jun 2026 22:42:15 +0100 Subject: [PATCH] uses grep short flags 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..46be82f 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 "^# " -m 1 "$entry" | cut -c3-)" + cat "$entry" | grep -e "^# " -v | eval "$postprocess_cmd" > "$dest" fi cat "$entry" | eval "$extract_args_cmd" > "${dest}.args" echo "Processed ${entry#$(dirname ${BLOGS})/} to ${dest#$(dirname ${SRC})/}"