-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
$? and $CHILD_STATUS are not equivalent #1747
Comments
I think you need to require the "English" library. ruby-doc says the two should be interchangeable, if the library is required. So for your test code to work it should be:
|
It's even in the message:
|
I got the same error after using Rubocop auto-correct. Shouldn't the auto-correct add |
Normally you'd require it just once in your entire project, that's why auto-correct doesn't insert it. It's an easily fixable breakage, so I think most people would be fine with it. |
Is there somewhere list of auto-correct rules that may break things, like this one? |
@matkoniecz As far as I know, there is no such list. |
Instead of:
it might be more clear as:
|
I'm re-opening the issue while we consider if we should change the message as per @jaredbeck's suggestion. Even though it might be argued that requiring |
By the way the message on current master branch is
|
Rubocop says:
However,
$?
is set for system call and$CHILD_STATUS
is not:Code below:
The text was updated successfully, but these errors were encountered: