From: Michael Savage Date: Sat, 28 Dec 2019 23:47:39 +0000 (+0200) Subject: Quotes, use cat so the sed train runs strictly left to right X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=3450fd4a8bba797e45a3a6c524036b47ec92a51e;p=Monocypher.git Quotes, use cat so the sed train runs strictly left to right --- 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