From cf989df66aea7b7a6d50867f00d1d78103a64bee Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 27 Mar 2010 05:26:51 +0000 Subject: * textbinary.sgml: Remove tr example and just mention u2d and d2u instead. --- winsup/doc/ChangeLog | 5 +++++ winsup/doc/textbinary.sgml | 39 ++++----------------------------------- 2 files changed, 9 insertions(+), 35 deletions(-) diff --git a/winsup/doc/ChangeLog b/winsup/doc/ChangeLog index c97297a47..b30a52d4a 100644 --- a/winsup/doc/ChangeLog +++ b/winsup/doc/ChangeLog @@ -1,3 +1,8 @@ +2010-03-27 Christopher Faylor + + * textbinary.sgml: Remove tr example and just mention u2d and d2u + instead. + 2010-03-25 Christopher Faylor * pathnames.sgml: Clarify wording of user-specific fstab files. Fix diff --git a/winsup/doc/textbinary.sgml b/winsup/doc/textbinary.sgml index 055a5e012..bb49d411d 100644 --- a/winsup/doc/textbinary.sgml +++ b/winsup/doc/textbinary.sgml @@ -68,45 +68,14 @@ Non-Cygwin shells always pipe and redirect with binary mode. With non-Cygwin shells the commands cat filename | program and program < filename are not equivalent when filename is on a text-mounted partition. +The programs u2d and d2u can +be used to add or remove CR's from a file. u2d add's CR's before a NL. +d2u removes CR's. Use the --help option to these commands +for more information. -Example -To illustrate the various rules, we provide scripts to delete CRs -from files by using the tr program, which can only write -to standard output. -The script - - "$1".nocr -]]> - - will not work on a text mounted systems because the \r will be -reintroduced on writing. However scripts such as - - "$1".nocr -]]> - -and the .bat file - - %1.nocr -]]> - - work fine. In the first case we rely on gunzip to -set its output to binary mode, possibly overriding the mode used by the shell. -In the second case we rely on the DOS shell to redirect in binary mode. - - - Binary or text? UNIX programs that have been written for maximum portability -- cgit v1.2.3