04-24-2016, 10:55 PM
(04-24-2016, 01:34 AM)longsleep Wrote:(04-23-2016, 06:55 PM)patrickhwood Wrote: I've wondered for a while now why some people favor this syntax over the simple, old-style pipe, e.g.,
I do not know reasons for other people but my reasons are simple - people cannot type the | easily on many international keyboards. Also there are tons of articles which say that you should not pipe curl into bash with the | example and as this is an end user forum i chose not to irritate - After all these scripts are for users who do not care what actually is done.
I didn't think about the problems of finding | on some keyboards. My ASCII-centric bias is showing through, I'm afraid. I wonder how people write bash scripts if they don't have a $ key. Maybe the Euro symbol works as a substitute
I'm guessing the articles about piping curl into a shell you mention are of the "don't run random shell scripts off the internet" variety. Not bad advice, actually, although this (and wget) shows up all over various official installation guides. Here's one for installing Docker from docs.docker.com: curl -fsSL https://get.docker.com/ | sh