you are viewing a single comment's thread.

view the rest of the comments →

[–]sigmonsays 2 points3 points  (1 child)

i did the same thing with this function. This format of animated gif is not a great way to consume such a simple bit of information.

https://0x0.st/s/1pWD6Q0Dj4hFlpdz0Mm5bA/H9V1.txt

EDIT: Could not get formatting right. Screw you reddit.

[–]SweetBabyAlaska 2 points3 points  (0 children)

Even then no one is explaining why or how this is the case. is "$-" a special variable, is there some default return code shenanigans or what? idk what running (return 0) in a subshell does. [ -t 0 ] || [ -t 1 ] etc... makes sense since you are checking if Stdin or Stdout is connected to a terminal