summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2023-04-10 18:51:34 +0100
committerPádraig Brady <P@draigBrady.com>2023-04-10 18:54:19 +0100
commit09ded7049bfe11036452334b2128c65e208fd453 (patch)
treeeb107fa1a094041eecc53d5bc774464a3cb3ec72
parentffd62ab92c259d513a419b4078a45f1c658dc774 (diff)
downloadcoreutils-09ded7049bfe11036452334b2128c65e208fd453.tar.gz
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.
-rwxr-xr-xtests/cp/backup-dir.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cp/backup-dir.sh b/tests/cp/backup-dir.sh
index 5c17498cf..c05d9561a 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