-
-
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
curl-config: quote directories with potential space #9253
Conversation
I don't think changing the format of that data is going to make existing users of this happy. I would prefer to have users opt-in to have spaces treated correctly. Maybe with a new switch. Maybe we should then do an overhaul of all outputs in there and see if they could be improved for this aspect? |
0f66553
to
6898b9b
Compare
The current script has invalid syntax when there are spaces in prefix or libdir. I only fixed those that prevent it from running. Every time I run runtests.pl, I get a warning:
And a similar one for line 177. |
Right, that was the line 26 edit. The line 177 one is different. It adds double quotes to the output and assumes that the user of the option will handle them properly. I presume it breaks if the path itself contains double quotes. |
I added the internal quotes following your previous review. The output looks reasonable to me. Do you have a better alternative? Do you prefer changing the default prefix to something without spaces maybe? |
Yes, it is probably a reasonable format if we would create it as a new format today. But we aren't. We change an existing output that presumably existing tools/scripts already parse and use. Keeping those existing users is an important property. So I would like the change to be done with minimum risk of breakage. |
On Windows (at least with CMake), the default prefix is C:/Program Files (x86)/CURL.
6898b9b
to
a0aec16
Compare
Ok, reverted to the first revision (no extra quotes in the output). |
Thanks! |
On Windows (at least with CMake), the default prefix is
C:/Program Files (x86)/CURL
.