The ability to do 'curl some-site.com | bash' or ssh <hostname> 'curl some-site.com | bash' without having to worry about platform compatibility would be amazing.
The ability to do 'curl some-site.com | bash' or ssh <hostname> 'curl some-site.com | bash' without having to worry about platform compatibility would be amazing.
Microsoft went to great lengths to disallow these kind of one-liners in PowerShell (you need to explicitly add -executionpolicy bypass to even run a script), so apparently they are concerned about users executing random scripts off the net.
OTOH, yes, being able to assume bash on a user's installation would be amazing of course...
Yes and I fucking hate it, way to cut of useful functionality at the knees.
powershell.exe -ExecutionPolicy RemoteSigned -File whatever.ps1There's little practical distinction between piping a shell script from a random site or downloading a binary from it.
Installing a package manually vetted by distribution maintainers, signed and verified with GPG, is the same as blindly running a random script off the internet?
I don't think you appreciate how much effort Linux distributions invested into creating safe ways of distributing software.
`/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/in...
`\curl -sSL https://get.rvm.io | bash`
https://www.npmjs.com/package/nodejs-oneline/tutorial
`curl -sL https://deb.nodesource.com/setup | sudo -E bash -z`
It is a trend. I can find more examples, the above is just places I remember seeing this behaviour.