Closed greg-minshall closed 2 months ago
The parser counts curly braces in variable expansions to handle recursion (#39). The problem is the different number of opening and closing curly braces in this variable substitution:
${option2%%[<{().[]*}
I guess the string "[<{().[]" is to be taken literally in this case. In my defense, GitHub's syntax highlighter gives up after the second opening curly brace.
I need to revisit that recursion handling and see if not counting ${
and }
instead would be more correct.
Thanks for reporting.
you're welcome. thanks for the explanation -- i was curious if it would be the extra square bracket or the curly brace. and, thanks for the tool!
hi. i'm running 4.3.1 on arch linux. a file with just the following lines in it
gets
cheers.