delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=0.5 required=5.0 tests=AWL,BAYES_50,EXECUTABLE_URI,RCVD_IN_DNSWL_NONE |
X-Spam-Check-By: | sourceware.org |
X-Mail-Handler: | MailHop Outbound by DynDNS |
X-Report-Abuse-To: | abuse AT dyndns DOT com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) |
X-MHO-User: | U2FsdGVkX18EmF39DWuTy6TBKTbR5Ae3 |
Date: | Mon, 2 Jan 2012 23:58:24 -0500 |
From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: The -O option of curl under cygwin. |
Message-ID: | <20120103045824.GA14315@ednor.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <jdsehv$uo8$1 AT dough DOT gmane DOT org> <4F01C45D DOT 9090306 AT gmail DOT com> <jdttu8$5o6$1 AT dough DOT gmane DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <jdttu8$5o6$1@dough.gmane.org> |
User-Agent: | Mutt/1.5.20 (2009-06-14) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
On Tue, Jan 03, 2012 at 03:50:32AM +0000, Hongyi Zhao wrote: >On Mon, 02 Jan 2012 15:51:09 +0100, marco atzeri wrote: > >> I think you misunderstood the curl documentation, >> in this way it works as you expect >> >> curl -L >> http://mirrors.ctan.org/systems/win32/miktex/setup/setup-2.9.4321.exe -o >> ./miktex/setup/setup-2.9.4321.exe --create-dirs > >Thanks for your hints. But you can see the following explanations in the >curl documentation: > >-O/--remote-name Write output to a file named as the remote file Right. You still seem to be misinterpreting. -O just creates a file name in the current directory based on the name of the file on the remote end. The man page makes it clearer: -O, --remote-name Write output to a local file named like the remote file we get. (Only the file part of the remote file is used, the path is cut off.) The remote file name to use for saving is extracted from the given URL, nothing else. Consequentially, the file will be saved in the current working directory. If you want the file saved in a different directory, make sure you change current working directory before you invoke curl with the --O, ---remote-name flag! You may use this option as many times as the number of URLs you have. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |