tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: humanize_number(3) for dd(1) summary?



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.

Jean-Yves,

You've convinced me with this argument that adapting the behavior for
isatty() is not a good idea. :-)

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933


Home | Main Index | Thread Index | Old Index