From 5018e4a21b7f05a0c3c06948a38a225fe6a61615 Mon Sep 17 00:00:00 2001 From: tg Date: Tue, 13 Oct 2015 21:39:53 +0000 Subject: [PATCH] another testcase, before I go changing the way let] is handled --- check.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check.t b/check.t index 3d55bbb..d8475ad 100644 --- a/check.t +++ b/check.t @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.t,v 1.710 2015/10/09 21:36:52 tg Exp $ +# $MirOS: src/bin/mksh/check.t,v 1.711 2015/10/13 21:39:53 tg Exp $ # -*- mode: sh -*- #- # Copyright © 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, @@ -475,6 +475,9 @@ stdin: va[1975973142]=right va[4123456789]=wrong echo x7 ${va[#4123456789%2147483647]} + # make sure multiple calculations don't interfere with each other + let '# mca = -4 % -2' ' mcb = -4 % -2' + echo x8 $mca $mcb expected-stdout: x1 -1 4294967295 x2 -171510507 4123456789 @@ -483,6 +486,7 @@ expected-stdout: x5 -171510507 4123456789 x6 1975973142 1975973142 x7 right + x8 -4 0 --- name: arith-limit32-1 description: