From 99d3e68d59c21d2696f2636e18ef53d294c37bfe Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Fri, 15 Sep 2023 21:48:04 +0900 Subject: [PATCH] Revert ls change (#2315) echo does not split the words on newlines. --- test/integration-test-main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration-test-main.sh b/test/integration-test-main.sh index 16a742343d..246a7d254e 100755 --- a/test/integration-test-main.sh +++ b/test/integration-test-main.sh @@ -1848,8 +1848,8 @@ function test_concurrent_directory_updates { for _ in $(seq 10); do for i in $(seq 5); do local file - # shellcheck disable=SC2046 - file=$(echo [1-5] | "${SED_BIN}" -n "$((RANDOM % 5 + 1))p") + # shellcheck disable=SC2012,SC2046 + file=$(ls $(seq 5) | "${SED_BIN}" -n "$((RANDOM % 5 + 1))p") cat "${file}" >/dev/null || true rm -f "${file}" echo "foo" > "${file}" || true