-
-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
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
Revisit array warnings/errors with shopt --set strict_array
#2168
Comments
The above is for Originally posted by @andychu in #2166 (comment)
There is also
|
OK yes, we can do this after SparseArray I think my basic viewpoint is
So as another pass, we just I can probably do this as long as the style is consistent, and it looks good so far I think it is helping to put more stuff in |
I noticed that bash only complains about out of bounds negative indices, but not positive That doesn't make sense to me
Neither zsh or mksh do it:
I don't think it's documented - https://www.gnu.org/software/bash/manual/html_node/Arrays.html I think it's fine for us to match bash because being stricter is better. But if we do It also interacts with |
Yeah
and
|
Negative offset in In addition, positive out-of-bound offset and length can also be checked by |
Originally posted by @andychu in #2165 (comment)
I don't have the capacity to handle this in parallel with the currently ongoing bug fixes, refactoring, and SparseArray implementation of arrays.
Let's create an issue before forgetting about this.
The text was updated successfully, but these errors were encountered: