]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: remove use of unprotected 'set'
authorPádraig Brady <P@draigBrady.com>
Mon, 20 Jan 2025 15:21:58 +0000 (15:21 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 20 Jan 2025 15:21:58 +0000 (15:21 +0000)
commitdcc896e6c3d7fdcb75f493e216f94a2af558740b
tree7ebd0dab8fd1ba9905d76aae4ca17aa5a6aece86
parente6117526c3a46b46a1873c18f14bbce5e6acd557
tests: remove use of unprotected 'set'

* cfg.mk (sc_prohibit_bare_set): A new syntax check to
ensure we protect use of set with '--', so that args
beginning with '-' are not interpreted as options,
and if no args are present, all existing args are cleared.
* tests/cp/symlink-slash.sh: Add -- to unprotected use of set.
* tests/ls/ls-time.sh: Likewise.
* tests/ls/symlink-slash.sh: Likewise.
* tests/mkdir/perm.sh: Likewise.
* tests/mkdir/selinux.sh: Likewise.
* tests/mkdir/smack-no-root.sh: Likewise.
* tests/mkdir/smack-root.sh: Likewise.
* tests/mv/part-hardlink.sh: Likewise.
* tests/nice/nice.sh: Likewise.
* tests/stty/stty-row-col.sh: Likewise.
cfg.mk
tests/cp/symlink-slash.sh
tests/ls/ls-time.sh
tests/ls/symlink-slash.sh
tests/mkdir/perm.sh
tests/mkdir/selinux.sh
tests/mkdir/smack-no-root.sh
tests/mkdir/smack-root.sh
tests/mv/part-hardlink.sh
tests/nice/nice.sh
tests/stty/stty-row-col.sh