Hacker News new | ask | show | jobs
by pilif 3222 days ago
Yes. But that would break all existing tools wrapping around apt-key.

That's the downside of everything-is-just-strings in Unix

1 comments

apt-key could detect terminal output and modify its output.
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.