summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-03-29 23:51:52 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-03-29 23:51:52 +0200
commit7f7c84445055477088fd257b0002a05bb91b56a8 (patch)
tree36d56ecf2ecae955830f7c562e783425786437e5
parenta3a5e2eaa3a2c85d14a7edf0fd98a208f3d9f77a (diff)
downloadcurl-7f7c84445055477088fd257b0002a05bb91b56a8.tar.gz
output.d: quote the URL when globbing
Some shells do globbing of their own unless the URL is quoted, so maybe encourage this.
-rw-r--r--docs/cmdline-opts/output.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/cmdline-opts/output.d b/docs/cmdline-opts/output.d
index 35f52a213..48415041b 100644
--- a/docs/cmdline-opts/output.d
+++ b/docs/cmdline-opts/output.d
@@ -9,11 +9,11 @@ multiple documents, you can use '#' followed by a number in the <file>
specifier. That variable will be replaced with the current string for the URL
being fetched. Like in:
- curl http://{one,two}.example.com -o "file_#1.txt"
+ curl "http://{one,two}.example.com" -o "file_#1.txt"
or use several variables like:
- curl http://{site,host}.host[1-5].com -o "#1_#2"
+ curl "http://{site,host}.host[1-5].com" -o "#1_#2"
You may use this option as many times as the number of URLs you have. For
example, if you specify two URLs on the same command line, you can use it like