Open xPMo opened 4 years ago
Doh, good catch. Yes it appears this is related to the IFS='\'
bug I mentioned on #627 and that's exposed by the spec tests.
This makes fixing that a higher priority (both bugs can be fixed at once), although it's a little hairy and I'm not sure exactly when.
Keep the bug reports coming in any case! I haven't gotten any "fundamental language" bugs in awhile, and it helps to catch them early.
Hm I'm getting the crash in both cases, with ${word}:
and ${word}:b
. I haven't gotten:
[a] [\] [b]
I'm not sure how important it is, but what version of OSH can you reproduce that with?
In any case I'm pretty sure I know how to fix it, but it's a bit hairy. I have to carry along some booleans further through the word expansion pipeline.
I can't reproduce it anymore, which is bizarre.
Input:
Bash, Dash, etc:
Osh:
Input:
Bash, Dash, etc:
Osh: (crashes, stderr)