Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
digi_owl
on May 25, 2018
|
parent
|
context
|
favorite
| on:
There are real reasons for Linux to replace ifconf...
Or simply detect when piped and leave the color out, as just about every sane cli tool does it.
eeZah7Ux
on May 25, 2018
[–]
Spot on. A good pattern is to autodetect what to do by default and yet allow forcing on/off (e.g. --color and --no-color)
kchr
on May 25, 2018
|
parent
[–]
Agreed. It could be as simple as checking if there is a tty and whether or not we're inside a pipe.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: