summary refs log tree commit diff
path: root/bin/cash/tests/expansion/cmdsubst2.0
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-10 20:19:51 -0500
committerJune McEnroe <june@causal.agency>2019-01-10 20:19:51 -0500
commit9beeb46022fc1e0c6bc6bec029bb949df10a2c3d (patch)
tree7db75dd126879bea3f0d8762b2619e0bebcf2836 /bin/cash/tests/expansion/cmdsubst2.0
parentRemove funcs (diff)
downloadsrc-9beeb46022fc1e0c6bc6bec029bb949df10a2c3d.tar.gz
src-9beeb46022fc1e0c6bc6bec029bb949df10a2c3d.zip
Remove cash/tests
Diffstat (limited to 'bin/cash/tests/expansion/cmdsubst2.0')
-rw-r--r--bin/cash/tests/expansion/cmdsubst2.043
1 files changed, 0 insertions, 43 deletions
diff --git a/bin/cash/tests/expansion/cmdsubst2.0 b/bin/cash/tests/expansion/cmdsubst2.0
deleted file mode 100644
index f3bbcfbb..00000000
--- a/bin/cash/tests/expansion/cmdsubst2.0
+++ /dev/null
@@ -1,43 +0,0 @@
-# $FreeBSD: releng/12.0/bin/sh/tests/expansion/cmdsubst2.0 205105 2010-03-12 23:23:46Z jilles $
-
-failures=0
-
-check() {
-	if ! eval "[ $* ]"; then
-		echo "Failed: $*"
-		: $((failures += 1))
-	fi
-}
-
-check '`echo /et[c]/` = "/etc/"'
-check '`printf /var/empty%s /et[c]/` = "/var/empty/etc/"'
-check '"`echo /et[c]/`" = "/etc/"'
-check '`echo "/et[c]/"` = "/etc/"'
-check '`printf /var/empty%s "/et[c]/"` = "/var/empty/et[c]/"'
-check '`printf /var/empty/%s \"/et[c]/\"` = "/var/empty/\"/et[c]/\""'
-check '"`echo \"/et[c]/\"`" = "/et[c]/"'
-check '"`echo "/et[c]/"`" = "/et[c]/"'
-check '`echo $$` = $$'
-check '"`echo $$`" = $$'
-check '`echo \$\$` = $$'
-check '"`echo \$\$`" = $$'
-
-# Command substitutions consisting of a single builtin may be treated
-# differently.
-check '`:; echo /et[c]/` = "/etc/"'
-check '`:; printf /var/empty%s /et[c]/` = "/var/empty/etc/"'
-check '"`:; echo /et[c]/`" = "/etc/"'
-check '`:; echo "/et[c]/"` = "/etc/"'
-check '`:; printf /var/empty%s "/et[c]/"` = "/var/empty/et[c]/"'
-check '`:; printf /var/empty/%s \"/et[c]/\"` = "/var/empty/\"/et[c]/\""'
-check '"`:; echo \"/et[c]/\"`" = "/et[c]/"'
-check '"`:; echo "/et[c]/"`" = "/et[c]/"'
-check '`:; echo $$` = $$'
-check '"`:; echo $$`" = $$'
-check '`:; echo \$\$` = $$'
-check '"`:; echo \$\$`" = $$'
-
-check '`set -f; echo /et[c]/` = "/etc/"'
-check '"`set -f; echo /et[c]/`" = "/et[c]/"'
-
-exit $((failures > 0))