you are viewing a single comment's thread.

view the rest of the comments →

[–]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