Hacker News new | ask | show | jobs
by vbezhenar 3222 days ago
apt-key could detect terminal output and modify its output.
2 comments

Writing any script would be hell if the commands you call suddenly start modifying their behaviour. This is bad practice, and the GNU coding standards (for example) agree: https://www.gnu.org/prep/standards/standards.html#User-Inter...

"Likewise, please don’t make the behavior of a command-line program depend on the type of output device it gets as standard output or standard input."

Or just an extra flag like --list-after-import.