Re:Why curl defaults to stdout
by wtetzner on Monday November 17, 2014 @12:51PM
(#8619363)
The thing is, you might want to pipe the output to something else instead of saving it to a file. If you check that you're outputting to a terminal, then the terminal behavior is different than the pipe behavior, which might be confusing.
Maybe if it's a terminal print a warning with a simple explanation, or a Y/N prompt?
Maybe if it's a terminal print a warning with a simple explanation, or a Y/N prompt?