Skip to content

typeset toto[${SUCCESS:=0}]="SUCCESS" gives ksh93: typeset: ${SUCCESS:: arithmetic syntax error in original ksh93u #815

Closed Answered by McDutchie
ablancke asked this question in Q&A

You must be logged in to vote

I gave my stash of compiled historical commits a whirl. Your reproducer starts working as of commit 5c02cd4 (dev branch) a.k.a. c365189 (1.0 branch). So, looks like I fixed this myself on 2024-01-17. I had a slightly different problem in mind then, but I'm not surprised that commit fixed this case as well, as it implements correct lexical analysis of variable names that include array subscripts.

In terms of released versions, this is fixed as of ksh 93u+m/1.0.9 and later.

Replies: 1 comment 4 replies

You must be logged in to vote
4 replies
@ablancke

@McDutchie

@ablancke

@McDutchie

Answer selected by McDutchie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants