delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/25/05:55:19

Message-Id: <200301251055.h0PAtJU20637@delorie.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Newsgroups: gmane.os.cygwin
Subject: curl oddity
From: news AT garydjones DOT mailshell DOT com
User-Agent: Xnews/4.11.09
X-No-Archive: yes
To: cygwin AT cygwin DOT com
X-Gate: Hamster/1.3.23.185 NewsToMail-Gate
Date: Sat, 25 Jan 2003 11:39:25 +0100

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019