diff options
Diffstat (limited to 'shell_cmds/sh/tests/expansion/cmdsubst8.0')
-rw-r--r-- | shell_cmds/sh/tests/expansion/cmdsubst8.0 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/expansion/cmdsubst8.0 b/shell_cmds/sh/tests/expansion/cmdsubst8.0 new file mode 100644 index 0000000..19ff803 --- /dev/null +++ b/shell_cmds/sh/tests/expansion/cmdsubst8.0 @@ -0,0 +1,17 @@ +# $FreeBSD: head/bin/sh/tests/expansion/cmdsubst8.0 216819 2010-12-30 15:04:59Z jilles $ +# 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 |