From 3450fd4a8bba797e45a3a6c524036b47ec92a51e Mon Sep 17 00:00:00 2001 From: Michael Savage Date: Sun, 29 Dec 2019 01:47:39 +0200 Subject: [PATCH] Quotes, use cat so the sed train runs strictly left to right --- doc/extract_examples.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/extract_examples.sh b/doc/extract_examples.sh index 6805c4a..bda04d0 100755 --- a/doc/extract_examples.sh +++ b/doc/extract_examples.sh @@ -71,7 +71,7 @@ for f in man/man3/*.3monocypher man/man3/optional/*.3monocypher; do # and can't be tested like this if [ ! -h "$f" ] && [ "$f" != "man/man3/crypto_sign_init_first_pass_custom_hash.3monocypher" ]; then echo "// $f" - sed -n "/^\.Bd/,/^\.Ed/p" < $f | sed "s/\.Bd.*/{/" | sed "s/\.Ed/}/" + cat "$f" | sed -n "/^\.Bd/,/^\.Ed/p" | sed "s/\.Bd.*/{/" | sed "s/\.Ed/}/" fi done -- 2.47.3