https://bugzilla.novell.com/show_bug.cgi?id=227511#c19 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mmarek@novell.com --- Comment #19 from Ján Kupec <jkupec@novell.com> 2007-10-08 11:26:35 MST --- (In reply to comment #18 from Senthil Nachimuthu)
(In reply to comment #17 from Ján Kupec)
BTW, confirmed, any of the following is correct, -- and = are optional:
long-opt value --long-opt value long-opt = value --long-opt = value
Can you tell me where you found documentation for the .curlrc file syntax please? I searched the man pages for curl but I couldn't find the proper syntax.
Unfortunately i've hit the same problem, the correct syntax is poorly documented in the man page and i did not find anything more on the web either. All i did was to experiment with it.
I thought curl would just read this file and append it to the command line
Me too, but nope, it does not work like that, check for example the following: this one works: $ curl --max-filesize 2 http://asdf.comer this one doesn't (but within .curlrc it is OK) $ curl --max-filesize=2 http://asdf.comer curl: option --max-filesize=2: is unknown
switches. In that case, are the = sign and the double quotes required? I think As i said above, the = sign is not required but permitted in the .curlrc file, but _not allowed_ on the command line.
if the the value contains a whitespace, then it should be enclosed in single quotes? Can it be either single quotes or double quotes?
Yes, both are OK, AFAIK
Sorry for asking so many questions, I haven't used curl much, and the man pages do not provide these details.
true, we are left to experiments and source code reading :O( CCing our curl maintainer so that he can push the correction of the documentation upstream. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.