Elliott Slaughter
Elliott Slaughter

Reputation: 1555

How to download a file with MSYS?

I would like to download a script from a vanilla MSYS environment.

On Linux, I would do

wget <url>

On Mac OS X, I would do

curl -O <url>

Unfortunately, neither of these alternatives appear to be available in a default installation of MSYS. I have also tried using the LPW::Simple module in Perl, but that also seems to not come installed by default.

Are there any tools that come with a default MSYS environment that can be used to accomplish this?

I could always tell the end-user to download the file themselves, but that defeats the goal of having everything "just work" with a minimal need for installing additional software.

Upvotes: 5

Views: 4545

Answers (1)

bgilbert
bgilbert

Reputation: 431

There is an MSYS wget package, but it doesn't seem to be installed by default. If you are willing to modify the MSYS environment, your script can do:

mingw-get install msys-wget-bin

Upvotes: 11

Related Questions