[OT] Curl pipe
cym13 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Aug 6 10:59:54 PDT 2016
On Saturday, 6 August 2016 at 17:18:51 UTC, Andre Pany wrote:
> Hi,
>
> I play around with the new windows 10 feature to run a linux
> sub system on windows.
>
> -> Installing dmd is working fine with the command
> curl -fsS https://dlang.org/install.sh | bash -s dmd
Just a side note but it's a really bad idea to pipe curl in bash
as it opens the door to remote unknown code exploitation. Even
checking what curl returns beforehand isn't enough as a piped
curl is distinguishable server-side so a different script could
be provided dynamically.
(Ok, with dlang.org there shouldn't be much problem but still)
More information about the Digitalmars-d-learn
mailing list