diff options
Diffstat (limited to 'shell_cmds/sh/tests/expansion/cmdsubst9.0')
-rw-r--r-- | shell_cmds/sh/tests/expansion/cmdsubst9.0 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/expansion/cmdsubst9.0 b/shell_cmds/sh/tests/expansion/cmdsubst9.0 new file mode 100644 index 0000000..8bbf2b9 --- /dev/null +++ b/shell_cmds/sh/tests/expansion/cmdsubst9.0 @@ -0,0 +1,11 @@ +# $FreeBSD: head/bin/sh/tests/expansion/cmdsubst9.0 216819 2010-12-30 15:04:59Z jilles $ + +set -e + +cd / +dummy=$(cd /bin) +[ "$(pwd)" = / ] + +v=1 +dummy=$(eval v=2) +[ "$v" = 1 ] |