This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
curl oddity
- From: news at garydjones dot mailshell dot com
- To: cygwin at cygwin dot com
- Date: Sat, 25 Jan 2003 11:39:25 +0100
- Subject: curl oddity
When using a command line of the form
$ curl -o "file_#1.htm" -x localhost:8000 http://www.sample.com/{first,second}.htm
the result I get is as follows:
$ ls -la *.htm
-rw-r--r-- 1 Gary users 4189 Jan 25 08:39 file_1.htm
and the second file sent to stdout. Neither is what I would
expect given the man page:
-o/--output <file>
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:
curl http://{one,two}.site.com -o "file_#1.txt"
>From reading that I expected to have files file_first.htm
and file_second.htm as my results, sitting on the HD. Am I
misreading the man page or is there a bug in there
somewhere? If the latter, can someone compare with curl on
another OS and see whether the results are the same?
$ curl -V
curl 7.10.2 (i686-pc-cygwin) libcurl/7.10.2 OpenSSL/0.9.6h zlib/1.1.4
$ uname
CYGWIN_98-4.10 daisy 1.3.19(0.71/3/2) 2003-01-23 21:31 i686 unknown unknown Cygwin
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/