Follow-up Comment #2, bug #13303 (project findutils): I propose the attached patch (against current CVS). Please try it out and let me know if you're happy with the result.
The patch affects -print, -fprint, -fprintf, -printf. It does not affect -ok, -okdir or -print0. The -ls and -fls actions already had escaping. The escape style for -print and friends is different to that used by -ls. This is explained in the documentation, which is also patched. Please let me know how intelligible you find the (updated) documentation. One could argue that -ok and -okdir should be fixed. It's not immediately obvious what the best way of doing that is. Thanks. _______________________________________________________ Additional Item Attachment: File name: escaped-terminal-output.patch Size:28 KB Proposed patch (1) against current CVS <http://savannah.gnu.org/bugs/download.php?item_id=13303&item_file_id=2576> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13303> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-findutils mailing list Bug-findutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-findutils