2 ms·
Isatty() is powerful. Powerful isn't always easy to work with. But, sometimes we want powerful. Like, knowing it's a tty so not echoing password. Or, Pike's plu
by ggm 6y ago
Isatty() is powerful. Powerful isn't always easy to work with. But, sometimes we want powerful. Like, knowing it's a tty so not echoing password. Or, Pike's plumber. Or maybe even what ls does?
I also got confused when it converted to more complex behaviour, but not everything about it is bad.