On Sun, Jun 05, 2005 at 12:02:59PM +0000, Andreas Metzler wrote:

> Afaict dumping non printable characters to the terminal usually is not wanted
> and should not be default.
> 
> Posix says:
> -print
>     The primary shall always evaluate as true; it shall cause 
>     the current pathname to be written to standard output.
> 
> so by filtering out these characters (e.g by replacing them with
> questionmarks or their escapecodes) we would not be following posix to the
> letter. But do you want to be _that_ strict?

I'm tempted to adopt the same approach as "ls" does in coreutils,
which is to print a "?" for nongraphic characters if stdout is a tty.

For find this, this might also logically mean changing -fprintf if the
target is a terminal, too.  

Do other list members have opinions or thoughts?

James.



_______________________________________________
Bug-findutils mailing list
Bug-findutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to