diff options
author | jilles <jilles@FreeBSD.org> | 2010-12-28 13:28:24 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-12-28 13:28:24 +0000 |
commit | 713ef02a1f782c52b5a7a985ce0f49312efd9a4d (patch) | |
tree | 1738ee903ef380fedf52a82c7ea4c2ac68689146 /tools/regression | |
parent | 5fb7e0486ccab134af174e9583417825e30f2f26 (diff) | |
download | FreeBSD-src-713ef02a1f782c52b5a7a985ce0f49312efd9a4d.zip FreeBSD-src-713ef02a1f782c52b5a7a985ce0f49312efd9a4d.tar.gz |
sh: Make expansion errors in optimized command substitution non-fatal.
Command substitutions consisting of a single simple command are executed in
the main shell process but this should be invisible apart from performance
and very few exceptions such as $(trap).
Diffstat (limited to 'tools/regression')
-rw-r--r-- | tools/regression/bin/sh/expansion/cmdsubst5.0 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/expansion/cmdsubst5.0 b/tools/regression/bin/sh/expansion/cmdsubst5.0 new file mode 100644 index 0000000..afca371 --- /dev/null +++ b/tools/regression/bin/sh/expansion/cmdsubst5.0 @@ -0,0 +1,5 @@ +# $FreeBSD$ + +unset v +exec 2>/dev/null +! y=$(: ${v?}) |