Re:Self-Documented Makefile
by ars on Tuesday March 01, 2016 @02:44AM
(#11201295)
It's not that hard to use the tty command to see if it's an interactive shell and set the config appropriately. Bower should do that automatically.
[ Parent
| on HN ]
But this is yet another anti-pattern: Having different behaviour depending on whether it's an interactive shell or not.
A big offender here is CURL, where this affects the verbosity during download. This is especially frustrating with regard to automation.
1. You type by hand, everything works.
2. You copy&paste into the command line, and everything works.
3. You run it from a script, and it behaves differently.