Re:Pure Sh Bible
by throwawaaarrgh on Monday May 01, 2023 @10:31AM
(#35773288)
> This outputs "i %i\n\n" 9 times.
damn, ya got me there. to be fair, I was drunk when I wrote that xD
damn, ya got me there. to be fair, I was drunk when I wrote that xD
The biggest reason why I don't use it all of the time is that calling / piping commands takes a lot more typing, so it's easier to use bash for very simple shell scripts. And while there are libraries that simplify shell scripting, that adds external dependencies to your scripts.
> for i in range(1,10): > print("i %i\n")
This outputs "i %i\n\n" 9 times.