Re:Show HN: Quickly copy a file between computers
by huhtenberg on Saturday February 16, 2013 @02:45PM
(#5232713)
isatty() to the rescue, but that's not to say that there shouldn't be a -- option or defaulting to a different mode depending on argv[0], like gzip does.
[0] http://pubs.opengroup.org/onlinepubs/007904875/functions/isa...
Most (I won't say all) command-line apps must be explicitly told which mode to use. There's a good reason.