Y
Hacker News
new
|
ask
|
show
|
jobs
by
jzwinck
518 days ago
That's what isatty() is for. If stdin is not a TTY, prompting should not be the default. Many programs change their defaults or their entire behavior based on isatty().
1 comments
junon
517 days ago
isatty() is spoofed in e.g. Make via PTYs. It's a light check at best and lies to you at worst.
link
darthwalsh
517 days ago
If make is going to spoof the PTY, it should take responsibility for answering the autocorrect prompt
link
junon
517 days ago
There's no "prompt". That's not how TTYs work. Make has no idea the program is waiting for any input.
link