diff options
author | Joshua Daniel Franklin <joshuadfranklin@yahoo.com> | 2004-01-24 08:09:45 +0000 |
---|---|---|
committer | Joshua Daniel Franklin <joshuadfranklin@yahoo.com> | 2004-01-24 08:09:45 +0000 |
commit | aff8b4f9aa3fa704805d389f983c172121e52f63 (patch) | |
tree | 60136785e549dadf71f1523240fc970b25c2f60e /winsup/doc/textbinary.sgml | |
parent | f4e815bc30f3c7179b8a914bb043ce087d7ad988 (diff) | |
download | cygnal-aff8b4f9aa3fa704805d389f983c172121e52f63.tar.gz cygnal-aff8b4f9aa3fa704805d389f983c172121e52f63.tar.bz2 cygnal-aff8b4f9aa3fa704805d389f983c172121e52f63.zip |
2004-01-24 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
* cygwinenv.sgml: Cleanup minor markup problems.
* dll.sgml: Cleanup minor markup problems.
* effectively.sgml: Cleanup minor markup problems.
* gcc.sgml: Cleanup minor markup problems.
* ntsec.sgml: Cleanup minor markup problems.
* pathnames.sgml: Cleanup minor markup problems.
* setup-net.sgml: Cleanup minor markup problems.
* textbinary.sgml: Cleanup minor markup problems.
* windres.sgml: Cleanup minor markup problems.
Diffstat (limited to 'winsup/doc/textbinary.sgml')
-rw-r--r-- | winsup/doc/textbinary.sgml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/doc/textbinary.sgml b/winsup/doc/textbinary.sgml index a58bd0231..c561d030a 100644 --- a/winsup/doc/textbinary.sgml +++ b/winsup/doc/textbinary.sgml @@ -86,7 +86,7 @@ these shells the relevant value of <envar>CYGWIN</envar> is that at the time the shell was launched and not that at the time the program is executed. Non-Cygwin shells always pipe and redirect with binary mode. With non-Cygwin shells the commands <command> cat filename | program </command> -and <command> program < filename </command> are not equivalent when +and <command> program < filename </command> are not equivalent when <filename>filename</filename> is on a text-mounted partition. </para> </listitem> </OrderedList> @@ -98,22 +98,28 @@ from files by using the <command>tr</command> program, which can only write to standard output. The script</para> <screen> +<![CDATA[ #!/bin/sh # Remove \r from the file given as argument tr -d '\r' < "$1" > "$1".nocr +]]> </screen> <para> will not work on a text mounted systems because the \r will be reintroduced on writing. However scripts such as </para> <screen> +<![CDATA[ #!/bin/sh # Remove \r from the file given as argument tr -d '\r' | gzip | gunzip > "$1".nocr +]]> </screen> <para>and the .bat file</para> <screen> +<![CDATA[ REM Remove \r from the file given as argument @echo off tr -d \r < %1 > %1.nocr +]]> </screen> <para> work fine. In the first case (assuming the pipes are binary) we rely on <command>gunzip</command> to set its output to binary mode, |