From 6e29a2d08ff4085fb1a3619e6737b56cab25422a Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 8 Nov 2026 19:30:07 +0200 Subject: fix(scripts): Exclude ed's error questionmarks When substitution fails it outputs a questionmark on a new line. The output could have up to two lines with questionmarks before the final print. There is no way to turn them off. --- scripts/archive | 2 +- scripts/unarchive | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/archive b/scripts/archive index ba50216..cc25c6e 100755 --- a/scripts/archive +++ b/scripts/archive @@ -7,7 +7,7 @@ then set "$REPLY" fi -set "$(echo -e "a\n$1\n.\n1s|\.\+/||g\n1s|/\+|/|g\n1p\nQ" | ed -s)" +set "$(echo -e "a\n$1\n.\n1s|\.\+/||g\n1s|/\+|/|g\n1p\nQ" | ed -sqr | tail -1)" if [ ! -d "$1" ] then diff --git a/scripts/unarchive b/scripts/unarchive index 08688da..25fc440 100755 --- a/scripts/unarchive +++ b/scripts/unarchive @@ -7,7 +7,7 @@ then set "$REPLY" fi -set "$(echo -e "a\n$1\n.\n1s|\.\+/||g\n1s|/\+|/|g\n1p\nQ" | ed -s)" +set "$(echo -e "a\n$1\n.\n1s|\.\+/||g\n1s|/\+|/|g\n1p\nQ" | ed -sqr | tail -1)" if [ ! -d "$1" ] then -- cgit v1.3.1-23-gd82d