| 1 |
Description: interp: Fix brace expansion test case on 32-bit |
| 2 |
9999999999 exceeds 32-bit range and does not lead to an error on |
| 3 |
32-bit platforms. This can be observed in the debian package: |
| 4 |
|
| 5 |
https://buildd.debian.org/status/fetch.php?pkg=golang-mvdan-sh&arch=armhf&ver=3.14.0-1&stamp=1788648229&raw=0 |
| 6 |
|
| 7 |
Change this to a sufficiently large value 1999999999 which still |
| 8 |
correctly triggers the stderr and fits in 32-bit range. |
| 9 |
Author: Nilesh Patra <[email protected]> |
| 10 |
Forwarded: https://github.com/mvdan/sh/pull/1417 |
| 11 |
Last-Update: 2026-09-06 |
| 12 |
--- a/interp/interp_test.go |
| 13 |
+++ b/interp/interp_test.go |
| 14 |
@@ -3734,7 +3734,7 @@ |
| 15 |
"brace expansion would exceed 16384 elements\n #IGNORE bash has no defensive limit below MaxInt", |
| 16 |
}, |
| 17 |
{ |
| 18 |
- "echo a{0..9999999999}b", |
| 19 |
+ "echo a{0..1999999999}b", |
| 20 |
"brace expansion would exceed 16384 elements\n #JUSTERR bash errors with a different message", |
| 21 |
}, |
| 22 |
|