Module Name: src
Committed By: kre
Date: Fri Jun 2 01:48:13 UTC 2017
Modified Files:
src/tests/bin/sh: t_expand.sh
Log Message:
Add 3 new subtests to the shell_params test case. These test currently
broken behaviour (so for now, 3 of 15 subtests will fail). This will
be corrected later today.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/tests/bin/sh/t_expand.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_expand.sh
diff -u src/tests/bin/sh/t_expand.sh:1.14 src/tests/bin/sh/t_expand.sh:1.15
--- src/tests/bin/sh/t_expand.sh:1.14 Mon May 29 22:27:47 2017
+++ src/tests/bin/sh/t_expand.sh Fri Jun 2 01:48:13 2017
@@ -1,4 +1,4 @@
-# $NetBSD: t_expand.sh,v 1.14 2017/05/29 22:27:47 kre Exp $
+# $NetBSD: t_expand.sh,v 1.15 2017/06/02 01:48:13 kre Exp $
#
# Copyright (c) 2007, 2009 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -418,6 +418,11 @@ shell_params_body() {
'abab?cbb:bab?cbb+abab?cb-b?cbb_a%bab?cbb=abab?cb/abab' 0
check 'set -- a "" c "" e; echo "${2:=b}"' '' 1
+ check 'set -- a b c d; echo ${4294967297}' '' 0 # result 'a' => ${1}
+ check 'set -- a b c; echo ${01}' 'a' 0
+ check "${TEST_SH} -c 'echo 0=\${00} 1=\${01} 2=\${02}' a b c" \
+ '0=a 1=b 2=c' 0
+
results
}