Thread (4 messages) 4 messages, 3 authors, 2021-06-21

Re: [PATCH v3] t6020: fix incompatible parameter expansion

flat view

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2021-06-21 09:31:01

On Thu, Jun 17 2021, Jiang Xin wrote:
Ævar reported that the function `make_user_friendly_and_stable_output()`
failed on a i386 box (gcc45) in the gcc farm boxes with error:

    sed: couldn't re-allocate memory

It turns out that older versions of bash (4.3) or dash (0.5.7) cannot
evaluate expression like `${A%${A#???????}}` used to get the leading 7
characters of variable A.

Replace the incompatible parameter expansion so that t6020 works on
older version of bash or dash.

Reported-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Jiang Xin <redacted>
---
For what it's worth I've also tested this v3 on gcc45, it works too.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help