From: Pádraig Brady
Date: Mon, 10 Apr 2023 17:51:34 +0000 (+0100) Subject: tests: avoid non portable brace expansion X-Git-Tag: v9.3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09ded7049bfe11036452334b2128c65e208fd453;p=thirdparty%2Fcoreutils.git tests: avoid non portable brace expansion * tests/cp/backup-dir.sh: Avoid non portable brace expansion which is not supported by FreeBSD or Solaris shells at least. --- diff --git a/tests/cp/backup-dir.sh b/tests/cp/backup-dir.sh index 5c17498cf4..c05d9561ab 100755 --- a/tests/cp/backup-dir.sh +++ b/tests/cp/backup-dir.sh @@ -31,8 +31,8 @@ test -d y/x~ && fail=1 # Bug 62607. # This would fail to backup using rename, and thus fail to replace the file -mkdir -p {src,dst}/foo || framework_failure_ -touch {src,dst}/foo/bar || framework_failure_ +mkdir -p src/foo dst/foo || framework_failure_ +touch src/foo/bar dst/foo/bar || framework_failure_ cp --recursive --backup src/* dst || fail=1 Exit $fail