From: Mark Jamsek Subject: Re: regress: consistently use ed -s To: Omar Polo Cc: gameoftrees@openbsd.org Date: Fri, 18 Nov 2022 23:23:30 +1100 On 22-11-18 12:36PM, Omar Polo wrote: > 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) ok > 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" </dev/null 2>&1 > + ed -s "$testroot/wt/alpha" < 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 < /dev/null 2> /dev/null > + ed -s "$testroot/wt/numbers" < 1,10d > 50r !jot 20 > w > -- Mark Jamsek GPG: F2FF 13DE 6A06 C471 CA80 E6E2 2930 DC66 86EE CF68