[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 97/264: output.d: quote the URL when globbing
From: |
gnunet |
Subject: |
[gnurl] 97/264: output.d: quote the URL when globbing |
Date: |
Thu, 30 Apr 2020 16:06:40 +0200 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit c79e428940fddc9aa1a4a5b197d3ec0f5f4fd1dd
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sun Mar 29 23:51:52 2020 +0200
output.d: quote the URL when globbing
Some shells do globbing of their own unless the URL is quoted, so maybe
encourage this.
Co-authored-by: Jay Satiro
Closes #5160
---
docs/cmdline-opts/output.d | 10 +++++-----
docs/cmdline-opts/page-header | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/docs/cmdline-opts/output.d b/docs/cmdline-opts/output.d
index 35f52a213..f310c267d 100644
--- a/docs/cmdline-opts/output.d
+++ b/docs/cmdline-opts/output.d
@@ -5,15 +5,15 @@ Help: Write to file instead of stdout
See-also: remote-name remote-name-all remote-header-name
---
Write output to <file> instead of stdout. If you are using {} or [] to fetch
-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:
+multiple documents, you should quote the URL and 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
diff --git a/docs/cmdline-opts/page-header b/docs/cmdline-opts/page-header
index 51f45edad..7b04a8240 100644
--- a/docs/cmdline-opts/page-header
+++ b/docs/cmdline-opts/page-header
@@ -46,9 +46,9 @@ The URL syntax is protocol-dependent. You'll find a detailed
description in
RFC 3986.
You can specify multiple URLs or parts of URLs by writing part sets within
-braces as in:
+braces and quoting the URL as in:
- http://site.{one,two,three}.com
+ "http://site.{one,two,three}.com"
or you can get sequences of alphanumeric series by using [] as in:
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 65/264: test970: improve the test, (continued)
- [gnurl] 65/264: test970: improve the test, gnunet, 2020/04/30
- [gnurl] 82/264: docs/make: generate curl.1 from listed files only, gnunet, 2020/04/30
- [gnurl] 76/264: CI: migrate macOS jobs from Azure and Travis CI to GitHub Actions, gnunet, 2020/04/30
- [gnurl] 34/264: DISABLED: disable test 323, gnunet, 2020/04/30
- [gnurl] 42/264: tool_setopt: correct the copyright year range, gnunet, 2020/04/30
- [gnurl] 90/264: KNOWN_BUGS: "stick to same family over SOCKS pro" is presumed fixed, gnunet, 2020/04/30
- [gnurl] 63/264: TODO: Use "random" ports for the test servers, gnunet, 2020/04/30
- [gnurl] 85/264: RELEASE-NOTES: synced, gnunet, 2020/04/30
- [gnurl] 120/264: windows: enable UnixSockets with all build toolchains, gnunet, 2020/04/30
- [gnurl] 118/264: sockfilt: remove redundancy in timeout handling, gnunet, 2020/04/30
- [gnurl] 97/264: output.d: quote the URL when globbing,
gnunet <=
- [gnurl] 15/264: tests: remove python_dependencies for smbserver from our tree, gnunet, 2020/04/30
- [gnurl] 94/264: curl.h: remnove CURL_VERSION_ESNI. Never supported nor documented, gnunet, 2020/04/30
- [gnurl] 96/264: dist: add tests/version-scan.pl to tarball, gnunet, 2020/04/30
- [gnurl] 99/264: ngtcp2: update to git master for the key installation API change, gnunet, 2020/04/30
- [gnurl] 129/264: lib670: use the same Win32 API check as all other lib tests, gnunet, 2020/04/30
- [gnurl] 102/264: cleanup: insert newline after if() conditions, gnunet, 2020/04/30
- [gnurl] 87/264: mailmap: fixup a few author names/fields, gnunet, 2020/04/30
- [gnurl] 86/264: version: add 'cainfo' and 'capath' to version info struct, gnunet, 2020/04/30
- [gnurl] 100/264: cmake: add CMAKE_MSVC_RUNTIME_LIBRARY, gnunet, 2020/04/30
- [gnurl] 135/264: dist: add missing setup-win32.h, gnunet, 2020/04/30