-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Wrong version mentioned for --disable (-q) in docs/options-in-versions #11710
Comments
curl 5.0 has --disable. It has to be used as the first curl parameter. Is that the actual command line you executed? Maybe you are seeing a bug that is not present in later versions. What happens if you use edit: It looks like --disable existed as an option in earlier versions but was not implemented. Here is the code from 7.29.0: Lines 201 to 212 in bf633a5
Later it was added in e200034 (precedes 7.49.0), but incorrectly, and fixed in 6dbc23c (precedes 7.50.0) |
I noticed that But I missed that there was one more correction in 7.50.0. It was even mentioned in changelog as: My main suggestion is to clearly state this in
But that would be only option having appearance in two different versions... BTW - yes, I was testing this as the first curl parameter. |
Adding that info to the options-in-versions file would require test 971 to get fixed (I never considered the case where it might need two versions for the same option). I think getting the details correct in |
One more clarification - |
If we want to be picky, that document states when the option was added. Not adjusted for bugs. As you can see in your command line, If you would have tried an option that does not exist at all: |
Yes, from this point of view all is fine.
The fact I guess PR #11712 created by @jay is nice proposition. I will just need to learn new place to check details about command line options. Which btw is good-to-know resource. @bagder - thank you for all your great work! 👏🏻 |
Option -q/--disable was added in 5.0 but only -q was actually implemented. Later --disable was implemented in e200034 (precedes 7.49.0), but incorrectly, and fixed in 6dbc23c (precedes 7.50.0). Reported-by: pszlazak@users.noreply.github.com Fixes curl#11710 Closes #xxxx
Option -q/--disable was added in 5.0 but only -q was actually implemented. Later --disable was implemented in e200034 (precedes 7.49.0), but incorrectly, and fixed in 6dbc23c (precedes 7.50.0). Reported-by: pszlazak@users.noreply.github.com Fixes curl#11710 Closes curl#11712
I did this
Having following settings in
~/.curlrc
:I executed:
In the output I noticed:
I expected the following
I assumed config options from
~/.curlrc
will not be used, especially--netrc-optional
.According to
docs/options-in-versions
option to disable readingcurlrc
file was introduced in 5.0:This is a little bit confusing. I guess it could be like this instead:
curl/libcurl version
operating system
Red Hat Enterprise Linux Server release 7.5 (Maipo)
The text was updated successfully, but these errors were encountered: