From: huott@pinebush.com (Ed Huott)
Subject: Re: cat and binary files
9 Apr 1997 17:49:58 -0700
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <199704092122.RAA06770.cygnus.gnu-win32@sol.pinebush.com>
Original-To: marc@watson.ibm.com
Original-cc: Win32 Mailing List <gnu-win32@cygnus.com>
In-reply-to: Your message of "Wed, 09 Apr 1997 09:49:20 EDT."
             <9704091349.AA39368@marc.watson.ibm.com> 
Original-Sender: owner-gnu-win32@cygnus.com

In message <9704091349.AA39368@marc.watson.ibm.com>, Marc Auslander writes:
>(running latest)
>
>cat seems to stop before the end of input - I assume at an end of file
>character.  cat --help doesn't offer a binary flag.  How can I cat
>binary files? 
>

Use the 'mount' command with the '-b' option to make sure that the
drive on which the file resides is "mounted" with the binary flag set
(text==binary) in the cygwin world.  There is some discussion about
this in the FAQ and/or README files.

If you are comfortable with mucking around in the Windows registry, you
can view/change the settings for these virtual drive mounts for the
current user under the following key sub-tree:

  HKEY_CURRENT_USER/Software/Cygnus Support/CYGWIN.DLL setup/b15.0/mounts

The value for the "fbinary" key under the appropriate device number
can be set to 1 to turn on the behavior where all files are treated as
binary (recommended).

Note that the "b15.0" settings still apply to the b17.1 installation.
These setting are preserved from one Windows login session to the
next.

Hope you find this useful.

<ED>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
