delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/02/09:51:39

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,EXECUTABLE_URI,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4F01C45D.9090306@gmail.com>
Date: Mon, 02 Jan 2012 15:51:09 +0100
From: marco atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: The -O option of curl under cygwin.
References: <jdsehv$uo8$1 AT dough DOT gmane DOT org>
In-Reply-To: <jdsehv$uo8$1@dough.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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 1/2/2012 3:21 PM, Hongyi Zhao wrote:
> Hi all,
>
> I use latest cygwin (setup-version: 2.763), and I meet the following
> issue:
>
> I use the following command to download the setup-2.9.4321.exe, which is
> the setup program for miktex:
>
> curl -L http://mirrors.ctan.org/systems/win32/miktex/setup/
> setup-2.9.4321.exe -O ./miktex/setup/
>
> In this case, the setup-2.9.4321.exe should be put into the ./miktex/
> setup/ with the original filename, but I always find that the
> setup-2.9.4321.exe is put into the current working directory.  Any hints
> on this issue?

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

>
> Best regards.

Marco

--
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

- Raw text -


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