-
Notifications
You must be signed in to change notification settings - Fork 786
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
"bad array subscript" error #2455
Comments
Thank you for reporting. This is strange, and I'm glad the error is at least non-fatal. If you paste the following code into a bash shell, what does it output? (You could paste it into zsh too; it will likely work.) brew list 2>/dev/null | grep '^openssl@' | while read -r formula; do
prefix="$(brew --prefix "$formula" 2>/dev/null || true)"
[ -n "$prefix" ] || continue
version="$("$prefix"/bin/openssl version 2>/dev/null | sed -n 's/OpenSSL \([0-9][0-9.]*\).*/\1/p')"
[ -z "$version" ] || printf '%s %s %s\n' "$formula" "$version" "$prefix"
done |
Hi, thanks for replying. The output is:
|
Thanks for checking. That looks okay, so I actually don't know what triggers the "bad array subscript" error. However, I do think that ruby-build is trying to access an array at index Lines 1155 to 1158 in 572dd65
|
Another "bad array subscript" error spotted in the wild: #2387 (comment) |
Steps to reproduce the behavior
rbenv install 2.7.8
Expected vs. actual behavior
I get the error
/usr/local/bin/ruby-build: line 1158: versions: bad array subscript
, right after issuing the command, which I suppose should not happen.The error is not blocking (build completes successfully).
Logs
This happens on an Intel Mac with macOS 14.7, ruby-build installed from Homebrew.
The text was updated successfully, but these errors were encountered: