Module Name: src Committed By: christos Date: Thu Mar 31 16:22:28 UTC 2016
Modified Files: src/tests/bin/sh: t_set_e.sh Log Message: When embedding a command in a subshell "( ... )" avoid accidentally producing (( (when the cmd starts with a '(' as that as a reserved sequence (according to posix) and some shells do treat it specially. So, force a space after the enclosing '(' to avoid the problem. For symmetry, put a space before the concluding ')' as well, though there is nothing special about )). (from kre@) To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/bin/sh/t_set_e.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/bin/sh/t_set_e.sh diff -u src/tests/bin/sh/t_set_e.sh:1.3 src/tests/bin/sh/t_set_e.sh:1.4 --- src/tests/bin/sh/t_set_e.sh:1.3 Sun Mar 27 10:50:01 2016 +++ src/tests/bin/sh/t_set_e.sh Thu Mar 31 12:22:27 2016 @@ -1,4 +1,4 @@ -# $NetBSD: t_set_e.sh,v 1.3 2016/03/27 14:50:01 christos Exp $ +# $NetBSD: t_set_e.sh,v 1.4 2016/03/31 16:22:27 christos Exp $ # # Copyright (c) 2007 The NetBSD Foundation, Inc. # All rights reserved. @@ -63,7 +63,7 @@ dcheck() # is thus important to test. (PR bin/29861) echeck() { - check1 'eval '"'($1)'" "$2" "eval '($1)'" + check1 'eval '"'( $1 )'" "$2" "eval '($1)'" } atf_test_case all