From 84bb58dfee156d09bceffe84ce874e30a8ff435a Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20A=2E=20Holm?= Date: Fri, 27 Sep 2024 01:46:52 +0200 Subject: [PATCH] bpakk: Output terminating `\n` at the end It turns out it's not necessary to drop the final `\n` when using `:'<,'>!bpakk` in Vim. I thought it would insert an empty line under the visually marked area. Good thing, because it was pretty annoying not to have the `\n` at the end when using it from the command line. 6bf7c876-7c63-11ef-9c9d-83850402c3ce --- bpakk | 1 + 1 file changed, 1 insertion(+) diff --git a/bpakk b/bpakk index 9c19553a..09f00838 100755 --- a/bpakk +++ b/bpakk @@ -7,4 +7,5 @@ if [ "$1" = "-d" ]; then base64 -di | gunzip --stdout --force else gzip -9 | base64 -w 8 "$@" | tr '\n' ' ' | sed 's/ $//' + echo fi -- 2.11.4.GIT