"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Omar Polo <op@omarpolo.com>
Subject:
regress: consistently use ed -s
To:
gameoftrees@openbsd.org
Date:
Fri, 18 Nov 2022 12:36:02 +0100

Download raw body.

Thread
discovered ed -s only recently; this fixes two ed invocations for
consistency with the other two ed calls.

(couldn't resist quoting in patch.sh too)

diff /home/op/w/gotd
commit - c9a8fe6ee0c8fdad87caf8947f584d8903931b14
path + /home/op/w/gotd
blob - ed77df82520d57a35def63dbe04ca0b4cc145444
file + regress/cmdline/histedit.sh
--- regress/cmdline/histedit.sh
+++ regress/cmdline/histedit.sh
@@ -1922,7 +1922,7 @@ test_histedit_prepend_line() {
 
 	got checkout $testroot/repo $testroot/wt > /dev/null
 
-	ed "$testroot/wt/alpha" <<EOF >/dev/null 2>&1
+	ed -s "$testroot/wt/alpha" <<EOF
 1i
 first line
 .
blob - af677fff9e318f5b61edce4c73ec63709b02fd53
file + regress/cmdline/patch.sh
--- regress/cmdline/patch.sh
+++ regress/cmdline/patch.sh
@@ -773,7 +773,7 @@ EOF
 EOF
 
 	jot 100 > $testroot/wt/numbers
-	ed $testroot/wt/numbers <<EOF > /dev/null 2> /dev/null
+	ed -s "$testroot/wt/numbers" <<EOF
 1,10d
 50r !jot 20
 w