This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The -O option of curl under cygwin.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]