1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

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.
This commit is contained in:
Pádraig Brady
2023-04-10 18:51:34 +01:00
parent ffd62ab92c
commit 09ded7049b

View File

@@ -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