Module Name: src
Committed By: kre
Date: Sat Jun 3 11:23:01 UTC 2017
Modified Files:
src/tests/bin/sh: t_expand.sh
Log Message:
By special request, add a check that ${011} is ${11} not ${9} (etc) and
that ${08} is not an error.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 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.15 src/tests/bin/sh/t_expand.sh:1.16
--- src/tests/bin/sh/t_expand.sh:1.15 Fri Jun 2 01:48:13 2017
+++ src/tests/bin/sh/t_expand.sh Sat Jun 3 11:23:01 2017
@@ -1,4 +1,4 @@
-# $NetBSD: t_expand.sh,v 1.15 2017/06/02 01:48:13 kre Exp $
+# $NetBSD: t_expand.sh,v 1.16 2017/06/03 11:23:01 kre Exp $
#
# Copyright (c) 2007, 2009 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -423,6 +423,11 @@ shell_params_body() {
check "${TEST_SH} -c 'echo 0=\${00} 1=\${01} 2=\${02}' a b c" \
'0=a 1=b 2=c' 0
+ # by special request, for PaulG... (${0...} is not octal!)
+ check \
+ 'set -- a b c d e f g h i j k l m; echo "$#: ${08} ${010} ${011}"' \
+ '13: h j k' 0
+
results
}