Revert ls change (#2315)

echo does not split the words on newlines.
This commit is contained in:
Andrew Gaul 2023-09-15 21:48:04 +09:00 committed by GitHub
parent 01189e99fc
commit 99d3e68d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1848,8 +1848,8 @@ function test_concurrent_directory_updates {
for _ in $(seq 10); do for _ in $(seq 10); do
for i in $(seq 5); do for i in $(seq 5); do
local file local file
# shellcheck disable=SC2046 # shellcheck disable=SC2012,SC2046
file=$(echo [1-5] | "${SED_BIN}" -n "$((RANDOM % 5 + 1))p") file=$(ls $(seq 5) | "${SED_BIN}" -n "$((RANDOM % 5 + 1))p")
cat "${file}" >/dev/null || true cat "${file}" >/dev/null || true
rm -f "${file}" rm -f "${file}"
echo "foo" > "${file}" || true echo "foo" > "${file}" || true