aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/tests/execution
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2023-08-16 17:55:03 +0000
committerWarner Losh <imp@FreeBSD.org>2023-08-16 17:55:03 +0000
commitd0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf (patch)
tree37ee9e3a9af3eec3e1baf2793da82358c404479b /bin/sh/tests/execution
parent031beb4e239bfce798af17f5fe8dba8bcaf13d99 (diff)
downloadsrc-d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf.tar.gz
src-d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf.zip
Diffstat (limited to 'bin/sh/tests/execution')
-rw-r--r--bin/sh/tests/execution/Makefile1
-rw-r--r--bin/sh/tests/execution/Makefile.depend1
-rw-r--r--bin/sh/tests/execution/bg1.01
-rw-r--r--bin/sh/tests/execution/bg10.01
-rw-r--r--bin/sh/tests/execution/bg11.01
-rw-r--r--bin/sh/tests/execution/bg12.01
-rw-r--r--bin/sh/tests/execution/bg13.01
-rw-r--r--bin/sh/tests/execution/bg2.01
-rw-r--r--bin/sh/tests/execution/bg3.01
-rw-r--r--bin/sh/tests/execution/bg4.01
-rw-r--r--bin/sh/tests/execution/bg5.01
-rw-r--r--bin/sh/tests/execution/bg6.01
-rw-r--r--bin/sh/tests/execution/bg7.01
-rw-r--r--bin/sh/tests/execution/bg8.01
-rw-r--r--bin/sh/tests/execution/bg9.01
-rw-r--r--bin/sh/tests/execution/env1.01
-rw-r--r--bin/sh/tests/execution/fork1.01
-rw-r--r--bin/sh/tests/execution/fork2.01
-rw-r--r--bin/sh/tests/execution/fork3.01
-rw-r--r--bin/sh/tests/execution/func1.01
-rw-r--r--bin/sh/tests/execution/func2.01
-rw-r--r--bin/sh/tests/execution/func3.01
-rw-r--r--bin/sh/tests/execution/hash1.01
-rw-r--r--bin/sh/tests/execution/int-cmd1.01
-rw-r--r--bin/sh/tests/execution/killed1.01
-rw-r--r--bin/sh/tests/execution/killed2.01
-rw-r--r--bin/sh/tests/execution/not1.01
-rw-r--r--bin/sh/tests/execution/not2.01
-rw-r--r--bin/sh/tests/execution/path1.01
-rw-r--r--bin/sh/tests/execution/pipefail1.01
-rw-r--r--bin/sh/tests/execution/pipefail2.421
-rw-r--r--bin/sh/tests/execution/pipefail3.421
-rw-r--r--bin/sh/tests/execution/pipefail4.421
-rw-r--r--bin/sh/tests/execution/pipefail5.421
-rw-r--r--bin/sh/tests/execution/pipefail6.421
-rw-r--r--bin/sh/tests/execution/pipefail7.01
-rw-r--r--bin/sh/tests/execution/redir1.01
-rw-r--r--bin/sh/tests/execution/redir2.01
-rw-r--r--bin/sh/tests/execution/redir3.01
-rw-r--r--bin/sh/tests/execution/redir4.01
-rw-r--r--bin/sh/tests/execution/redir5.01
-rw-r--r--bin/sh/tests/execution/redir6.01
-rw-r--r--bin/sh/tests/execution/redir7.01
-rw-r--r--bin/sh/tests/execution/set-C1.01
-rw-r--r--bin/sh/tests/execution/set-n1.01
-rw-r--r--bin/sh/tests/execution/set-n2.01
-rw-r--r--bin/sh/tests/execution/set-n3.01
-rw-r--r--bin/sh/tests/execution/set-n4.01
-rw-r--r--bin/sh/tests/execution/set-x1.01
-rw-r--r--bin/sh/tests/execution/set-x2.01
-rw-r--r--bin/sh/tests/execution/set-x3.01
-rw-r--r--bin/sh/tests/execution/set-x4.01
-rw-r--r--bin/sh/tests/execution/shellproc1.01
-rw-r--r--bin/sh/tests/execution/shellproc2.01
-rw-r--r--bin/sh/tests/execution/shellproc3.01
-rw-r--r--bin/sh/tests/execution/shellproc4.01
-rw-r--r--bin/sh/tests/execution/shellproc5.01
-rw-r--r--bin/sh/tests/execution/shellproc6.01
-rw-r--r--bin/sh/tests/execution/shellproc7.01
-rw-r--r--bin/sh/tests/execution/subshell1.01
-rw-r--r--bin/sh/tests/execution/subshell2.01
-rw-r--r--bin/sh/tests/execution/subshell3.01
-rw-r--r--bin/sh/tests/execution/subshell4.01
-rw-r--r--bin/sh/tests/execution/unknown1.01
-rw-r--r--bin/sh/tests/execution/unknown2.01
-rw-r--r--bin/sh/tests/execution/var-assign1.01
66 files changed, 0 insertions, 66 deletions
diff --git a/bin/sh/tests/execution/Makefile b/bin/sh/tests/execution/Makefile
index ab5218b10a0c..2b4f88db989c 100644
--- a/bin/sh/tests/execution/Makefile
+++ b/bin/sh/tests/execution/Makefile
@@ -1,4 +1,3 @@
-# $FreeBSD$
PACKAGE= tests
diff --git a/bin/sh/tests/execution/Makefile.depend b/bin/sh/tests/execution/Makefile.depend
index f80275d86ab1..11aba52f82cf 100644
--- a/bin/sh/tests/execution/Makefile.depend
+++ b/bin/sh/tests/execution/Makefile.depend
@@ -1,4 +1,3 @@
-# $FreeBSD$
# Autogenerated - do NOT edit!
DIRDEPS = \
diff --git a/bin/sh/tests/execution/bg1.0 b/bin/sh/tests/execution/bg1.0
index edb92ae2ddd0..eae1e2a6eece 100644
--- a/bin/sh/tests/execution/bg1.0
+++ b/bin/sh/tests/execution/bg1.0
@@ -1,3 +1,2 @@
-# $FreeBSD$
: `false` &
diff --git a/bin/sh/tests/execution/bg10.0 b/bin/sh/tests/execution/bg10.0
index 44a25dc23b2e..3e825d9eda20 100644
--- a/bin/sh/tests/execution/bg10.0
+++ b/bin/sh/tests/execution/bg10.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# The redirection overrides the </dev/null implicit in a background command.
echo yes | ${SH} -c '{ cat & wait; } <&0'
diff --git a/bin/sh/tests/execution/bg11.0 b/bin/sh/tests/execution/bg11.0
index e0c48ed16076..380d2180fe79 100644
--- a/bin/sh/tests/execution/bg11.0
+++ b/bin/sh/tests/execution/bg11.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
T=`mktemp -d ${TMPDIR:-/tmp}/sh-test.XXXXXXXX`
trap 'rm -rf $T' 0
diff --git a/bin/sh/tests/execution/bg12.0 b/bin/sh/tests/execution/bg12.0
index a9bde6cac8a3..ed1e0065b226 100644
--- a/bin/sh/tests/execution/bg12.0
+++ b/bin/sh/tests/execution/bg12.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
T=`mktemp -d ${TMPDIR:-/tmp}/sh-test.XXXXXXXX`
trap 'rm -rf $T' 0
diff --git a/bin/sh/tests/execution/bg13.0 b/bin/sh/tests/execution/bg13.0
index 37a4ad864ded..7f6fb87af665 100644
--- a/bin/sh/tests/execution/bg13.0
+++ b/bin/sh/tests/execution/bg13.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
T=`mktemp -d ${TMPDIR:-/tmp}/sh-test.XXXXXXXX`
trap 'rm -rf $T' 0
diff --git a/bin/sh/tests/execution/bg2.0 b/bin/sh/tests/execution/bg2.0
index 2e2fbc53bd26..29bdffb0b105 100644
--- a/bin/sh/tests/execution/bg2.0
+++ b/bin/sh/tests/execution/bg2.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
f() { return 42; }
f
diff --git a/bin/sh/tests/execution/bg3.0 b/bin/sh/tests/execution/bg3.0
index 359fc6f476e6..0a411f611e1f 100644
--- a/bin/sh/tests/execution/bg3.0
+++ b/bin/sh/tests/execution/bg3.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
f() { return 42; }
f
diff --git a/bin/sh/tests/execution/bg4.0 b/bin/sh/tests/execution/bg4.0
index 25e4f4e34fa5..4d63fa8b455f 100644
--- a/bin/sh/tests/execution/bg4.0
+++ b/bin/sh/tests/execution/bg4.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
x=''
: ${x:=1} &
diff --git a/bin/sh/tests/execution/bg5.0 b/bin/sh/tests/execution/bg5.0
index cc9ceaa41d4e..94c45dba370b 100644
--- a/bin/sh/tests/execution/bg5.0
+++ b/bin/sh/tests/execution/bg5.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# A background command has an implicit </dev/null redirection.
echo bad | ${SH} -c '{ cat & wait; }'
diff --git a/bin/sh/tests/execution/bg6.0 b/bin/sh/tests/execution/bg6.0
index b0faf9e73708..ce6d88461f97 100644
--- a/bin/sh/tests/execution/bg6.0
+++ b/bin/sh/tests/execution/bg6.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# The redirection overrides the </dev/null implicit in a background command.
echo yes | ${SH} -c '{ cat & wait; } </dev/stdin'
diff --git a/bin/sh/tests/execution/bg7.0 b/bin/sh/tests/execution/bg7.0
index f771edc56cde..01a0a1a333f3 100644
--- a/bin/sh/tests/execution/bg7.0
+++ b/bin/sh/tests/execution/bg7.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# The redirection does not apply to the background command, and therefore
# does not override the implicit </dev/null.
diff --git a/bin/sh/tests/execution/bg8.0 b/bin/sh/tests/execution/bg8.0
index 33667cb1922b..4eeb235411f3 100644
--- a/bin/sh/tests/execution/bg8.0
+++ b/bin/sh/tests/execution/bg8.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# The redirection does not apply to the background command, and therefore
# does not override the implicit </dev/null.
diff --git a/bin/sh/tests/execution/bg9.0 b/bin/sh/tests/execution/bg9.0
index 64fde3e3e333..805c90a9caba 100644
--- a/bin/sh/tests/execution/bg9.0
+++ b/bin/sh/tests/execution/bg9.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# The redirection does not apply to the background command, and therefore
# does not override the implicit </dev/null.
diff --git a/bin/sh/tests/execution/env1.0 b/bin/sh/tests/execution/env1.0
index 7eb8abbd5247..f1abad21bade 100644
--- a/bin/sh/tests/execution/env1.0
+++ b/bin/sh/tests/execution/env1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
unset somestrangevar
export somestrangevar
diff --git a/bin/sh/tests/execution/fork1.0 b/bin/sh/tests/execution/fork1.0
index 2eeac79ae8c3..bf47ca044306 100644
--- a/bin/sh/tests/execution/fork1.0
+++ b/bin/sh/tests/execution/fork1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
shname=${SH%% *}
shname=${shname##*/}
diff --git a/bin/sh/tests/execution/fork2.0 b/bin/sh/tests/execution/fork2.0
index 62a25379123c..1b2ed28672ca 100644
--- a/bin/sh/tests/execution/fork2.0
+++ b/bin/sh/tests/execution/fork2.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
result=$(${SH} -c '(/bin/sleep 1)& sleep 0.1; ps -p $! -o comm=; kill $!')
test "$result" = sleep || exit 1
diff --git a/bin/sh/tests/execution/fork3.0 b/bin/sh/tests/execution/fork3.0
index 3cb678c2d08a..d9b2efb235bd 100644
--- a/bin/sh/tests/execution/fork3.0
+++ b/bin/sh/tests/execution/fork3.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
result=$(${SH} -c 'f() { ps -p $$ -o comm=; }; f')
test "$result" = "ps"
diff --git a/bin/sh/tests/execution/func1.0 b/bin/sh/tests/execution/func1.0
index 29fcc077b592..0dfd341f9099 100644
--- a/bin/sh/tests/execution/func1.0
+++ b/bin/sh/tests/execution/func1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
MALLOC_OPTIONS=J ${SH} -c 'g() { g() { :; }; :; }; g' &&
MALLOC_OPTIONS=J ${SH} -c 'g() { unset -f g; :; }; g'
diff --git a/bin/sh/tests/execution/func2.0 b/bin/sh/tests/execution/func2.0
index 9830b5e8a7cf..d0f505e30481 100644
--- a/bin/sh/tests/execution/func2.0
+++ b/bin/sh/tests/execution/func2.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# The empty pairs of braces here are to test that this does not cause a crash.
f() { }
diff --git a/bin/sh/tests/execution/func3.0 b/bin/sh/tests/execution/func3.0
index e0ed581f85ef..51e70bfa8ac2 100644
--- a/bin/sh/tests/execution/func3.0
+++ b/bin/sh/tests/execution/func3.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# This may fail when parsing or when defining the function, or the definition
# may silently do nothing. In no event may the function be executed.
diff --git a/bin/sh/tests/execution/hash1.0 b/bin/sh/tests/execution/hash1.0
index a645c2aef735..f41d38eb4a3c 100644
--- a/bin/sh/tests/execution/hash1.0
+++ b/bin/sh/tests/execution/hash1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
T=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit
trap 'rm -rf "${T}"' 0
diff --git a/bin/sh/tests/execution/int-cmd1.0 b/bin/sh/tests/execution/int-cmd1.0
index 6b1d366b2e7a..05d08dc3d62d 100644
--- a/bin/sh/tests/execution/int-cmd1.0
+++ b/bin/sh/tests/execution/int-cmd1.0
@@ -1,3 +1,2 @@
-# $FreeBSD$
! echo echo bad | ENV= $SH -ic 'fi' 2>/dev/null
diff --git a/bin/sh/tests/execution/killed1.0 b/bin/sh/tests/execution/killed1.0
index 41d3e055723e..a3977b6ce10c 100644
--- a/bin/sh/tests/execution/killed1.0
+++ b/bin/sh/tests/execution/killed1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# Sometimes the "Killed" message is not flushed soon enough and it
# is redirected along with the output of a builtin.
# Do not change the semicolon to a newline as it would hide the bug.
diff --git a/bin/sh/tests/execution/killed2.0 b/bin/sh/tests/execution/killed2.0
index 7ff3fe2900d1..2b9a8fa628e1 100644
--- a/bin/sh/tests/execution/killed2.0
+++ b/bin/sh/tests/execution/killed2.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# Most shells print a message when a foreground job is killed by a signal.
# POSIX allows this, provided the message is sent to stderr, not stdout.
# Some trickery is needed to capture the message as redirecting stderr of
diff --git a/bin/sh/tests/execution/not1.0 b/bin/sh/tests/execution/not1.0
index 12c6265a9282..86bd3fbe04d3 100644
--- a/bin/sh/tests/execution/not1.0
+++ b/bin/sh/tests/execution/not1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
f() { ! return $1; }
f 0 && ! f 1
diff --git a/bin/sh/tests/execution/not2.0 b/bin/sh/tests/execution/not2.0
index 1b128d096716..896f59528c60 100644
--- a/bin/sh/tests/execution/not2.0
+++ b/bin/sh/tests/execution/not2.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
while :; do
! break
diff --git a/bin/sh/tests/execution/path1.0 b/bin/sh/tests/execution/path1.0
index 50829d629a4d..72537dac4973 100644
--- a/bin/sh/tests/execution/path1.0
+++ b/bin/sh/tests/execution/path1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# Some builtins should not be overridable via PATH.
set -e
diff --git a/bin/sh/tests/execution/pipefail1.0 b/bin/sh/tests/execution/pipefail1.0
index df23a012ca07..d3ce51b3042b 100644
--- a/bin/sh/tests/execution/pipefail1.0
+++ b/bin/sh/tests/execution/pipefail1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
set -o pipefail
: && : | : && : | : | : && : | : | : | :
diff --git a/bin/sh/tests/execution/pipefail2.42 b/bin/sh/tests/execution/pipefail2.42
index b9092661c76e..93eded1deda3 100644
--- a/bin/sh/tests/execution/pipefail2.42
+++ b/bin/sh/tests/execution/pipefail2.42
@@ -1,4 +1,3 @@
-# $FreeBSD$
set -o pipefail
(exit 42) | :
diff --git a/bin/sh/tests/execution/pipefail3.42 b/bin/sh/tests/execution/pipefail3.42
index d96602b57f02..996a404a294c 100644
--- a/bin/sh/tests/execution/pipefail3.42
+++ b/bin/sh/tests/execution/pipefail3.42
@@ -1,4 +1,3 @@
-# $FreeBSD$
set -o pipefail
: | (exit 42)
diff --git a/bin/sh/tests/execution/pipefail4.42 b/bin/sh/tests/execution/pipefail4.42
index 3399dd8c4452..d18d36bf470b 100644
--- a/bin/sh/tests/execution/pipefail4.42
+++ b/bin/sh/tests/execution/pipefail4.42
@@ -1,4 +1,3 @@
-# $FreeBSD$
set -o pipefail
(exit 43) | (exit 42)
diff --git a/bin/sh/tests/execution/pipefail5.42 b/bin/sh/tests/execution/pipefail5.42
index 4effb2b3301e..3ccfb5d24940 100644
--- a/bin/sh/tests/execution/pipefail5.42
+++ b/bin/sh/tests/execution/pipefail5.42
@@ -1,4 +1,3 @@
-# $FreeBSD$
set -o pipefail
(exit 42) | : &
diff --git a/bin/sh/tests/execution/pipefail6.42 b/bin/sh/tests/execution/pipefail6.42
index 7395d8c785a6..4fbca1b09ad8 100644
--- a/bin/sh/tests/execution/pipefail6.42
+++ b/bin/sh/tests/execution/pipefail6.42
@@ -1,4 +1,3 @@
-# $FreeBSD$
set -o pipefail
(exit 42) | : &
diff --git a/bin/sh/tests/execution/pipefail7.0 b/bin/sh/tests/execution/pipefail7.0
index 797d485f3c61..84c551bdb6a3 100644
--- a/bin/sh/tests/execution/pipefail7.0
+++ b/bin/sh/tests/execution/pipefail7.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
(exit 42) | : &
set -o pipefail
diff --git a/bin/sh/tests/execution/redir1.0 b/bin/sh/tests/execution/redir1.0
index dd0011f064b0..ffdc9c82a23d 100644
--- a/bin/sh/tests/execution/redir1.0
+++ b/bin/sh/tests/execution/redir1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
trap ': $((brokenpipe+=1))' PIPE
P=${TMPDIR:-/tmp}
diff --git a/bin/sh/tests/execution/redir2.0 b/bin/sh/tests/execution/redir2.0
index 1588105f599a..4eb44aa3a5bf 100644
--- a/bin/sh/tests/execution/redir2.0
+++ b/bin/sh/tests/execution/redir2.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
trap ': $((brokenpipe+=1))' PIPE
P=${TMPDIR:-/tmp}
diff --git a/bin/sh/tests/execution/redir3.0 b/bin/sh/tests/execution/redir3.0
index d68e4504ed3d..3129abbee0b3 100644
--- a/bin/sh/tests/execution/redir3.0
+++ b/bin/sh/tests/execution/redir3.0
@@ -1,3 +1,2 @@
-# $FreeBSD$
3>&- 3>&-
diff --git a/bin/sh/tests/execution/redir4.0 b/bin/sh/tests/execution/redir4.0
index 57054c17c45f..bee2bd78f5b2 100644
--- a/bin/sh/tests/execution/redir4.0
+++ b/bin/sh/tests/execution/redir4.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
{ echo bad 0>&3; } 2>/dev/null 3>/dev/null 3>&-
exit 0
diff --git a/bin/sh/tests/execution/redir5.0 b/bin/sh/tests/execution/redir5.0
index 707ca68f737a..d810475bfb1a 100644
--- a/bin/sh/tests/execution/redir5.0
+++ b/bin/sh/tests/execution/redir5.0
@@ -1,3 +1,2 @@
-# $FreeBSD$
{ (echo bad) >/dev/null; } </dev/null
diff --git a/bin/sh/tests/execution/redir6.0 b/bin/sh/tests/execution/redir6.0
index 4e3ac0cae055..d9a90a97523c 100644
--- a/bin/sh/tests/execution/redir6.0
+++ b/bin/sh/tests/execution/redir6.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
failures=0
diff --git a/bin/sh/tests/execution/redir7.0 b/bin/sh/tests/execution/redir7.0
index 2487bcf2fc0d..59abf0698493 100644
--- a/bin/sh/tests/execution/redir7.0
+++ b/bin/sh/tests/execution/redir7.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
failures=0
diff --git a/bin/sh/tests/execution/set-C1.0 b/bin/sh/tests/execution/set-C1.0
index 7877a33989b7..50ce8483c2d6 100644
--- a/bin/sh/tests/execution/set-C1.0
+++ b/bin/sh/tests/execution/set-C1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
T=$(mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX") || exit
trap 'rm -rf "$T"' 0
diff --git a/bin/sh/tests/execution/set-n1.0 b/bin/sh/tests/execution/set-n1.0
index 14c9b9396ada..e3ee7d2c103d 100644
--- a/bin/sh/tests/execution/set-n1.0
+++ b/bin/sh/tests/execution/set-n1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
v=$( ($SH -n <<'EOF'
for
diff --git a/bin/sh/tests/execution/set-n2.0 b/bin/sh/tests/execution/set-n2.0
index c7f31629f474..1f309d59f619 100644
--- a/bin/sh/tests/execution/set-n2.0
+++ b/bin/sh/tests/execution/set-n2.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
$SH -n <<'EOF'
echo bad
diff --git a/bin/sh/tests/execution/set-n3.0 b/bin/sh/tests/execution/set-n3.0
index 24a9159fdeb9..362dd121a1fe 100644
--- a/bin/sh/tests/execution/set-n3.0
+++ b/bin/sh/tests/execution/set-n3.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
v=$( ($SH -nc 'for') 2>&1 >/dev/null)
[ $? -ne 0 ] && [ -n "$v" ]
diff --git a/bin/sh/tests/execution/set-n4.0 b/bin/sh/tests/execution/set-n4.0
index 36985084b26b..80a8c2bbcc46 100644
--- a/bin/sh/tests/execution/set-n4.0
+++ b/bin/sh/tests/execution/set-n4.0
@@ -1,3 +1,2 @@
-# $FreeBSD$
$SH -nc 'echo bad'
diff --git a/bin/sh/tests/execution/set-x1.0 b/bin/sh/tests/execution/set-x1.0
index 7fe1dbf1076b..31dffe45d84d 100644
--- a/bin/sh/tests/execution/set-x1.0
+++ b/bin/sh/tests/execution/set-x1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
key='must_contain_this'
{ r=`set -x; { : "$key"; } 2>&1 >/dev/null`; } 2>/dev/null
diff --git a/bin/sh/tests/execution/set-x2.0 b/bin/sh/tests/execution/set-x2.0
index 56d54e38d251..a1b8d6d37f79 100644
--- a/bin/sh/tests/execution/set-x2.0
+++ b/bin/sh/tests/execution/set-x2.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
key='must contain this'
PS4="$key+ "
diff --git a/bin/sh/tests/execution/set-x3.0 b/bin/sh/tests/execution/set-x3.0
index 1ca57aca6baa..11f79ea5fcb9 100644
--- a/bin/sh/tests/execution/set-x3.0
+++ b/bin/sh/tests/execution/set-x3.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
key='must contain this'
PS4='$key+ '
diff --git a/bin/sh/tests/execution/set-x4.0 b/bin/sh/tests/execution/set-x4.0
index 0904766ccdd1..495a2d9c304c 100644
--- a/bin/sh/tests/execution/set-x4.0
+++ b/bin/sh/tests/execution/set-x4.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
key=`printf '\r\t\001\200\300'`
r=`{ set -x; : "$key"; } 2>&1 >/dev/null`
diff --git a/bin/sh/tests/execution/shellproc1.0 b/bin/sh/tests/execution/shellproc1.0
index 1326bc27f1c1..125a177f8418 100644
--- a/bin/sh/tests/execution/shellproc1.0
+++ b/bin/sh/tests/execution/shellproc1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
T=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit
trap 'rm -rf "${T}"' 0
diff --git a/bin/sh/tests/execution/shellproc2.0 b/bin/sh/tests/execution/shellproc2.0
index 85e768070022..b599d16527be 100644
--- a/bin/sh/tests/execution/shellproc2.0
+++ b/bin/sh/tests/execution/shellproc2.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# This tests a quality of implementation issue.
# Shells are not required to reject executing binary files as shell scripts
# but executing, for example, ELF files for a different architecture as
diff --git a/bin/sh/tests/execution/shellproc3.0 b/bin/sh/tests/execution/shellproc3.0
index 6ad455f2cd77..17026480a90a 100644
--- a/bin/sh/tests/execution/shellproc3.0
+++ b/bin/sh/tests/execution/shellproc3.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# This tests a quality of implementation issue.
# Shells are not required to reject executing binary files as shell scripts
# but executing, for example, ELF files for a different architecture as
diff --git a/bin/sh/tests/execution/shellproc4.0 b/bin/sh/tests/execution/shellproc4.0
index fcc72eef073c..4aa944b55a86 100644
--- a/bin/sh/tests/execution/shellproc4.0
+++ b/bin/sh/tests/execution/shellproc4.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# This tests a quality of implementation issue.
# Shells are not required to reject executing binary files as shell scripts
# but executing, for example, ELF files for a different architecture as
diff --git a/bin/sh/tests/execution/shellproc5.0 b/bin/sh/tests/execution/shellproc5.0
index c25ffe3e4693..535e5dabc4d9 100644
--- a/bin/sh/tests/execution/shellproc5.0
+++ b/bin/sh/tests/execution/shellproc5.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# This tests a quality of implementation issue.
# Shells are not required to reject executing binary files as shell scripts
# but executing, for example, ELF files for a different architecture as
diff --git a/bin/sh/tests/execution/shellproc6.0 b/bin/sh/tests/execution/shellproc6.0
index 1c06bc3b05a9..f1527f6d854d 100644
--- a/bin/sh/tests/execution/shellproc6.0
+++ b/bin/sh/tests/execution/shellproc6.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
T=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit
trap 'rm -rf "${T}"' 0
diff --git a/bin/sh/tests/execution/shellproc7.0 b/bin/sh/tests/execution/shellproc7.0
index 2a99ae74c151..b5e543826c8a 100644
--- a/bin/sh/tests/execution/shellproc7.0
+++ b/bin/sh/tests/execution/shellproc7.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
# Non-POSIX trickery that is widely supported,
# used by https://justine.lol/ape.html
diff --git a/bin/sh/tests/execution/subshell1.0 b/bin/sh/tests/execution/subshell1.0
index 347806ed45ac..ddff2fee4999 100644
--- a/bin/sh/tests/execution/subshell1.0
+++ b/bin/sh/tests/execution/subshell1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
(eval "cd /
v=$(printf %0100000d 1)
diff --git a/bin/sh/tests/execution/subshell2.0 b/bin/sh/tests/execution/subshell2.0
index 32164495c9ca..ad5a3b87af47 100644
--- a/bin/sh/tests/execution/subshell2.0
+++ b/bin/sh/tests/execution/subshell2.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
f() {
x=2
diff --git a/bin/sh/tests/execution/subshell3.0 b/bin/sh/tests/execution/subshell3.0
index 9a87acb15e1c..4d1916dfa18e 100644
--- a/bin/sh/tests/execution/subshell3.0
+++ b/bin/sh/tests/execution/subshell3.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
(false; exit) && exit 3
exit 0
diff --git a/bin/sh/tests/execution/subshell4.0 b/bin/sh/tests/execution/subshell4.0
index b39edb12eb2c..841186b5e619 100644
--- a/bin/sh/tests/execution/subshell4.0
+++ b/bin/sh/tests/execution/subshell4.0
@@ -1,3 +1,2 @@
-# $FreeBSD$
(eval "set v=1"; false) && echo bad; :
diff --git a/bin/sh/tests/execution/unknown1.0 b/bin/sh/tests/execution/unknown1.0
index 45f541e6eeea..c41243454dbc 100644
--- a/bin/sh/tests/execution/unknown1.0
+++ b/bin/sh/tests/execution/unknown1.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
nosuchtool 2>/dev/null
[ $? -ne 127 ] && exit 1
diff --git a/bin/sh/tests/execution/unknown2.0 b/bin/sh/tests/execution/unknown2.0
index d316e01949f6..eb7ab0175a65 100644
--- a/bin/sh/tests/execution/unknown2.0
+++ b/bin/sh/tests/execution/unknown2.0
@@ -1,4 +1,3 @@
-# $FreeBSD$
{
: $(/var/empty/nosuchtool)
diff --git a/bin/sh/tests/execution/var-assign1.0 b/bin/sh/tests/execution/var-assign1.0
index 26e54249c1cc..8d49498d848e 100644
--- a/bin/sh/tests/execution/var-assign1.0
+++ b/bin/sh/tests/execution/var-assign1.0
@@ -1,3 +1,2 @@
-# $FreeBSD$
[ "$(HOME=/etc HOME=/ cd && pwd)" = / ]