]> Sergey Matveev's repositories - schwabrak.git/commitdiff
Explicit empty line separator
authorSergey Matveev <stargrave@stargrave.org>
Tue, 26 Mar 2024 20:56:52 +0000 (23:56 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 26 Mar 2024 20:56:52 +0000 (23:56 +0300)
comment

diff --git a/comment b/comment
index f4784bd1111fcdf084a0c454b792c15ca168f6727ced26c848d2d14a1dc079ff..3b4e3de682168683d8f3dfac150655adcb041c35bbb1a52bebaa62d951963f81 100755 (executable)
--- a/comment
+++ b/comment
@@ -13,7 +13,7 @@ comment=issues/$issue/comment
 
 local tmp=`mktemp`
 trap "rm -f $tmp" HUP PIPE INT QUIT TERM EXIT
-$PERL -npe 's/^/# /' < $comment > $tmp
+{ $PERL -npe 's/^/# /' < $comment ; print } > $tmp
 zmodload -F zsh/stat b:zstat
 zstat -A ctimePrev +ctime $tmp
 $EDITOR $tmp