aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/tests/expansion/cmdsubst8.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/tests/expansion/cmdsubst8.0')
-rw-r--r--bin/sh/tests/expansion/cmdsubst8.017
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/sh/tests/expansion/cmdsubst8.0 b/bin/sh/tests/expansion/cmdsubst8.0
new file mode 100644
index 000000000000..52adaea33b93
--- /dev/null
+++ b/bin/sh/tests/expansion/cmdsubst8.0
@@ -0,0 +1,17 @@
+# $FreeBSD$
+# Not required by POSIX (although referenced in a non-normative section),
+# but possibly useful.
+
+: hi there &
+p=$!
+q=$(jobs -l $p)
+
+# Change tabs to spaces.
+set -f
+set -- $q
+r="$*"
+
+case $r in
+*" $p "*) ;;
+*) echo Pid missing; exit 3 ;;
+esac