← Commit list

22cb0d573

Denys Vlasenko
Denys Vlasenko
2023-06-15
SUCCESS Duration: 160s

Subject

shell: document another arithmetic discrepancy with bash

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/ash_test/ash-arith/arith-assign-in-varexp1.right+2 -0
@@ -0,0 +1,2 @@
+7:7
+x=3
shell/ash_test/ash-arith/arith-assign-in-varexp1.tests+9 -0
@@ -0,0 +1,9 @@
+exec 2>&1
+a='x=1'
+b='x=2'
+c='x=3'
+# The variables should evaluate immediately when they encountered,
+# not when they go into an operation. Here, order of evaluation
+# of names to numbers should be a,b,c - not b,c,a:
+echo 7:$((a+b*c))
+echo "x=$x"