The -O option of curl under cygwin.

marco atzeri marco.atzeri@gmail.com
Mon Jan 2 14:51:00 GMT 2012


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



More information about the Cygwin mailing list