Re:Curl doesn’t spew binary anymore
by Asooka on Saturday June 17, 2017 @08:33AM
(#14575618)
Many legacy and contemporary programs change their output behaviour based on if they're outputting to a tty or to a pipe. Off the top of my head, ls (as old as you can get) and git (new) do not colourise their output by default for pipes, but do colourise for terminals. This is just curl trying to be a good citizen on the terminal, for which there is plenty of precedent.
[ Parent
| on HN ]
this drives me slightly nuts but I get why people do it.. I really wish for some kindof smarter negotiation between pipes.
I often end up doing things like: watch --color juju status --color or "ls -c | less -r", etc.
Re:Curl doesn’t spew binary anymore
by ComputerGuru on Saturday June 17, 2017 @01:58PM
(#14576906)
Not just colour. The actual formatting and layout of ls output changes, too.
Re:Curl doesn’t spew binary anymore
by Dylan16807 on Saturday June 17, 2017 @06:01PM
(#14577912)
And it's sometimes helpful, but sometimes a big pain because you just wanted to pipe it into less.