We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From #648
The following is the case where the type of the variable cannot be determined statically (which seems not be prohibited by Oil):
$ bin/osh -c 'v=A; declare -$v d=([a]=123); echo ${d["a"]}' 123
The text was updated successfully, but these errors were encountered:
@akinomyoga I wrote a comment about this issue here:
https://github.com/oilshell/oil/blob/master/osh/word_.py#L518
Basically A=([k]=v) in Oil has to be an associative array; it can't be an indexed array.
A=([k]=v)
However I can see it's a bit confusing nonetheless. We could add a check for it, but I noticed that there are tons of scripts that use it unquoted.
I guess we would hide it behind shopt -s parse_strict_array or something.
shopt -s parse_strict_array
Sorry, something went wrong.
No branches or pull requests
From #648
The text was updated successfully, but these errors were encountered: