Hi Chris, On 1/21/21 7:06 PM, Christian Groessler wrote: > On 1/21/21 7:00 PM, Alejandro Colomar (man-pages) wrote: >> >> tee -q file >> >> is simple, is readable, ... > > ... and incompatible to anything else. > > All the examples you gave in your previous email work on (I'd say) 99% > of *nix systems. > > "tee -q" will only work on systems with coreutils installed. > > Why do you want to become incompatible for a task which can be > accomplished in compatible means?
Well, if this patch is accepted, I'd also try to patch other tees, such as FreeBSD's. If people see this as an improvement, they might patch their tee. Maybe POSIX will add some day -q if it's widespread and useful. Of course, it will still be incompatible with systems with old versions of tee, but some day most systems might upgrade, and our sons may use tee -q normally. I have to work on systems with RHEL 5 (yes, 5) and OSX, and of course I don't expect those to accept tee -q any soon, but my best bet to see a decent alternative some day is to write it today. That's how evolution works. We simply can't predict it. But we can try to help it. Regards, Alex > > regards, > chris >