You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following example shows differences between bash and gosh in interpreting select operator:
$ gosh -c 'select SEL in foo bar baz; do echo "Selected $SEL"; break; done'Selected foo
$ bash -c 'select SEL in foo bar baz; do echo "Selected $SEL"; break; done'1) foo2) bar3) baz#? 3Selected baz
gosh selects the first option without prompt, bash prompts for option selection and correctly assigns the selected value.
Activity
[-]gosh interprets `select` incorrectly[/-][+]interp: interprets `select` incorrectly[/+]mvdan commentedon Feb 3, 2023
Thanks for reporting; the parser supports this, but the interpreter incorrectly handles it like a
for.interp: handle select clause
interp: handle select clause
interp: handle select clause
interp: handle select clause
interp: handle select clauses
interp: add test cases for select re-prompting