"GOT", but the "O" is a cute, smiling sun Index | Thread

From:
Mark Jamsek <mark@jamsek.com>
Subject:
Re: regress: consistently use ed -s
To:
Omar Polo <op@omarpolo.com>
Cc:
gameoftrees@openbsd.org
Date:
Fri, 18 Nov 2022 23:23:30 +1100

Download raw body.

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" <<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
> 

-- 
Mark Jamsek <fnc.bsdbox.org>
GPG: F2FF 13DE 6A06 C471 CA80  E6E2 2930 DC66 86EE CF68