Commit b4e0802fabd9a36f320a70b8aa668a66533cfb08

Christian Weisgerber 2021-10-14T18:52:27

FreeBSD's ed(1) does not accept "0i"; use the equivalent "1i" instead

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/regress/cmdline/histedit.sh b/regress/cmdline/histedit.sh
index 3dc4a6a..c944b6d 100755
--- a/regress/cmdline/histedit.sh
+++ b/regress/cmdline/histedit.sh
@@ -1924,7 +1924,7 @@ test_histedit_prepend_line() {
 	got checkout $testroot/repo $testroot/wt > /dev/null
 
 	ed "$testroot/wt/alpha" <<EOF >/dev/null 2>&1
-0i
+1i
 first line
 .
 wq