[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: humanize_number(3) for dd(1) summary?
In article <20101204194211.GH1616%ojctech.com@localhost>,
David Young <dyoung%pobox.com@localhost> wrote:
>On Sat, Dec 04, 2010 at 12:39:23PM +0100, Jean-Yves Migeon wrote:
>> Indeed, I can add some intelligence to dd(1) via isatty(). I know that
>> some binaries (ls(1), man(1)) have their behaviour "automagically" adapt
>> to the type of output terminal.
>> However, I think it contradicts principle of least suprise here: when
>> someone (in the distant future) tries to write a script with dd(1),
>> given the relative complexity of the summary line, he's likely to try
>> its stuff with the output from command line first.
>You've convinced me with this argument that adapting the behavior for
>isatty() is not a good idea. :-)
I was going to say, what should come next is if /bin/cat detects that
both stdin and stdout are a tty, it should probably print:
<<When you are done type ^D to exit>>
Main Index |
Thread Index |