Commit c036d108ac767e1676aa3482997c193e0056c7e0

Omar Polo 2022-04-15T18:14:01

redirect jot(1) output instead of looping over it; ok tb@

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/regress/cmdline/status.sh b/regress/cmdline/status.sh
index 4639246..9b3e14a 100755
--- a/regress/cmdline/status.sh
+++ b/regress/cmdline/status.sh
@@ -330,10 +330,7 @@ test_status_shows_no_mods_after_complete_merge() {
 	local testroot=`test_init status_shows_no_mods_after_complete_merge 1`
 
 	# make this file larger than the usual blob buffer size of 8192
-	echo -n > $testroot/repo/numbers
-	for i in `jot 16384`; do
-		echo "$i" >> $testroot/repo/numbers
-	done
+	jot 16384 > $testroot/repo/numbers
 
 	(cd $testroot/repo && git add numbers)
 	git_commit $testroot/repo -m "added numbers file"