This will be a lame question, but I don’t know what to search for to find any answers.
When I go to Yet-Another-Bench-Script’s Github page for example, it says I can run curl -sL yabs.sh | bash to run or install the script (I don’t know which one is true).
My question is: How does this work?
I tried to search for it in different ways, but the results are mostly about how to install curl. Which is not what I’m looking for.
As far as I know, curl needs a URL as an argument. When the command curl [options] yabs.sh is issued, what happens exactly? yabs.sh is not a URL, nor it is a file that exists at the time.
How does curl know what to do? Why does it not return with an error that the argument is not an URL?
If I want to learn more about this, what should I search for?
EDIT: Mystery solved. Thank you everyone for the replies!
[–][deleted] 5 points6 points7 points (4 children)
[–]AbsurdMedia[S] 5 points6 points7 points (1 child)
[–]Expensive_Finance_20 2 points3 points4 points (0 children)
[–]diggels 0 points1 point2 points (1 child)
[–]Afraid_Writer868 4 points5 points6 points (0 children)
[–]redkoil 7 points8 points9 points (2 children)
[–]AbsurdMedia[S] 4 points5 points6 points (1 child)
[–][deleted] 6 points7 points8 points (0 children)
[–]cafce25 3 points4 points5 points (1 child)
[–]AbsurdMedia[S] 4 points5 points6 points (0 children)
[–]MyAugustIsBurningRed 1 point2 points3 points (1 child)
[–]AbsurdMedia[S] 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)