Commit Diff


commit - 99a97f809268a7ae2d24198c3c71fea8c884e6d2
commit + 57993930913522d8e81509ef26d8e0a26d571815
blob - 53011f6f6351ec5e36a888fac308c8d4f0f0002e
blob + b57e9531206c81f063628b12b4a2b476cc3e6135
--- regress/cmdline/commit.sh
+++ regress/cmdline/commit.sh
@@ -1589,10 +1589,8 @@ test_commit_prepared_logmsg() {
 
 	echo 'test commit_prepared_logmsg' > $testroot/logmsg
 
-	cat > $testroot/editor.sh <<EOF
-#!/bin/sh
-sed -i 's/foo/bar/' "\$1"
-EOF
+	# a no-op editor script
+	> $testroot/editor.sh
 	chmod +x $testroot/editor.sh
 
 	(cd $testroot/wt && env VISUAL="$testroot/editor.sh" \