Why Nostr? What is Njump?
2025-03-30 19:34:22
in reply to

Tim Chase on Nostr: nprofile1q…kq5wq More loatheworthy shell? While one typically quotes things like in ...



More loatheworthy shell?

While one typically quotes things like in English with the opening quote at the beginning and the closing quote at the end, the shell is perfectly happy to accept things like

$ git commit -am Send\ the" output to "'"stdout"'

or even in the middle of words:

$ echo hell"o world"

Short-circuit boolean evaluation can be a blessing in short, clear contexts

$ some_prog && deploy || send_failure_notice

but can rapidly spiral into a world of subshells and implicit order-of-operations for the boolean-conjunction evaluations.

Also, various shells differ in how they handle wildcards on the right of "<" or ">"

$ cat < *
$ echo hello > *.txt

Does it behave like tee(1)? Or use the first one, expanding the rest as arguments to the program? Or is it an error? 🤷

I'm sure I could come up with a few more…

Author Public Key
npub1n507nu5u0g0yy3jv8xzlwxzluyft9ps5p5etskrd6dxxlykkm8hqtucr3d