bug-findutils
[Top][All Lists]
Advanced

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

Re: Quoting of unprintable characters in the output of find


From: Eric Blake
Subject: Re: Quoting of unprintable characters in the output of find
Date: Wed, 07 Dec 2005 06:20:39 -0700
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to James Youngman on 12/7/2005 1:43 AM:
> 
> This means that I'm considering changing the output quoting method for
> -ls and -print where the output goes to a tty.  Should I also consider
> changing -ls and -fls to just print the literal pathname if the output
> is going to a non-terminal?

I would argue for adding a --quoting-style option (or -quoting-style) to
match ls, and allow the user to choose which output quoting style find
uses, regardless of whether stdout is a tty or not.  When that flag is not
present, I would make all filenames printed to a tty be quoted on the
grounds that it is for human consumption, and all filenames printed to a
non-terminal be literal on the grounds that the tool you are piping to
should not have to unquote the name.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDluGn84KuGfSFAYARAmR2AKC7alpFA+vJT2Z5HWN2HE7diFkcPwCgw6dX
dsKteyjDTrJyVlQTvn9E2ec=
=fgr3
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]