On 03/13/2014 12:00 PM, Paul Eggert wrote: > On 03/13/2014 10:32 AM, Pavel Raiskup wrote: >> Strictly >> speaking, GNU Coding Guidelines are talking about program_output_ > > You're right, and I hadn't noticed that. How about doing things the way > xargs does them, as Eric Blake pointed out? That seems like a nice > compromise.
Indeed, the xargs example modifies output according to whether stdin was a terminal; likewise for the lzip case. Your patch looks reasonable to me (changing behavior solely on whether stdin is hooked to something unlikely to be able to provide full binary input, and not on whether stdout is a terminal or not). -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
