top | item 42762244

(no title)

jzwinck | 1 year 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().

discuss

order

junon|1 year ago

isatty() is spoofed in e.g. Make via PTYs. It's a light check at best and lies to you at worst.

darthwalsh|1 year ago

If make is going to spoof the PTY, it should take responsibility for answering the autocorrect prompt