3 ms·
Not sure how to add that prompt by default without breaking existing scripts. Making it non-default seems like it wouldn’t help (given comments here).
by mikemcquaid 5y ago
Not sure how to add that prompt by default without breaking existing scripts. Making it non-default seems like it wouldn’t help (given comments here).
- Fire-Dragon-DoL 5y agoThe prompt should appear only in interactive mode, so it shouldn't break existing scripts
- kristjansson 5y agoFair enough. Like the sibling says, checking the moral equivalent of [ -t 0 ] probably distinguishes enough interactive vs non-interactive use to add an interactive-only default. I'd add that script-y usage of brew already can block on user input (e.g. if a cask asks for sudo), so adding a go/no-go check probably only breaks the most determined automators, while the benefits accrue to a wide swath of users (both new and fat-fingered). Regardless, thanks for all the work you (and the community!) do on Homebrew! I wouldn't like macOS half as much (or have bought half as many) without it.
- mikemcquaid 5y agoYeh, that’s the interactive check we’ve used in the past and unfortunately it still has given false positives and false negatives enough I’m hesitant to make a change this big due to it.