]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid non portable brace expansion
authorPádraig Brady <P@draigBrady.com>
Mon, 10 Apr 2023 17:51:34 +0000 (18:51 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 10 Apr 2023 17:54:19 +0000 (18:54 +0100)
* tests/cp/backup-dir.sh: Avoid non portable brace expansion
which is not supported by FreeBSD or Solaris shells at least.

tests/cp/backup-dir.sh

index 5c17498cf4d2981683bec769d4e7f6430dbed631..c05d9561abc7bbeca496f9b26ff04a0623f7a6c8 100755 (executable)
@@ -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