Todd Walton wrote:
On Thu, Mar 27, 2008 at 11:49 PM, David Brown <[EMAIL PROTECTED]> wrote:
I think that Lan's concern here is scriptability, which is important. But,
having a --quiet option is sufficient for this. But, showing progress
should be the default. Most users will start pressing ^C and other things
for even a command line program that doesn't print anything for a few
seconds.
Couldn't a program detect if it's running in an interactive shell or not?
Yes. A good example is the ls command. When run at the regular console,
the --color option injects ANSI escape codes into the output stream to
colorize the files/directories/links. If used in a script or even a
simple pipe, like say ls|grep myfile, the colorizing is disabled.
Gus
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list