curl-users
Re: curl: option --dns-servers 127.0.0.1: is unknown
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 10 May 2015 15:53:25 +0200 (CEST)
Date: Sun, 10 May 2015 15:53:25 +0200 (CEST)
On Sun, 10 May 2015, Hongyi Zhao wrote:
> It seems the quoting "${Dns_Servers}" keeps the argument as one piece, and
> thus curl will see it as a single unknown option "--dns-servers 127.0.0.1".
...
> I think, this should be treated as a bug of curl for doing lexicographical
> analysis on the options.
I disagree. The shell splits up the arugments fine, but you've told it that
the string should be considered as a single string by your use of double
quotes.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2015-05-10