Skip to content

Ksh fails to parse pnut-sh.sh #172

@laurenthuberdeau

Description

@laurenthuberdeau

Context

Sometimes, ksh fails to parse pnut-sh.sh, complaining about an invalid readonly variable name (pnut-sh.sh[7755]: readonly: : invalid variable name). The variable name is correct (readonly __EQ__=61), and other shells can parse and execute the same script without any problem. Strangely, deleting the affected line doesn't necessarily fix the issue, while deleting lines before the affected line can fix it. My guess is that we're hitting some internal ksh limit for certain combinations of pnut-sh.sh.

Rejiggering the code often fixes the issue, but we should look into this error sooner than later.

Here's one pnut-sh.sh script (created from ./bootstrap-pnut-sh.sh --shell ksh --fast on 5b922d941fdeacf82506791ba0ca59b4216c2df4) that causes the error on ksh version 93u+m/1.0.10 2024-08-01: pnut-sh.sh.zip.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions