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 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: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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