public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Larry Hall <lhall@rfk.com>
To: marc@watson.ibm.com, marc@watson.ibm.com
Cc: gnu-win32@cygnus.com
Subject: Re: cat and binary files
Date: Fri, 11 Apr 1997 01:45:00 -0000	[thread overview]
Message-ID: <2.2.32.19970411015452.00939c60@ma.ultranet.com> (raw)

At 03:17 PM 4/10/97 -0400, Marc Auslander wrote:
>I tried doing binary mounts with the following results.
>
>1.  cat now produces a file larger than the sum of the input file
>sizes.

I tried this and I cannot reproduce it.  You need to provide more information
about what you started with and what you did.  Mine equals out just as you'd
expect.

>2.  bash gets confused reading .bashrc

Your .bashrc may have CRs in it.  Remove them and I'll bet your problems
go away.  

In general, if you change from text mounts (the default, although I'd say it
causes more harm than good) to binary mounts, all files that were in any way
written previously will likely contain CRs which may cause you problems.
This includes all files extracted from all.tar.  You'll either need to 
reinstall or filter all suspected files to remove the CRs.

>3.  I don't know how to get binary while using explicit path notation.

I don't know what you mean by this.  Can you elaborate?

>So I'll go back to text mode mounts for now, and if necessary write a
>cat that works.

If you feel you must make a change to cat, simply get the source and add
the "b" flag to all fopens.  It shouldn't be any more difficult than 
that....

>
>Marc Auslander   <marc@watson.ibm.com>   914 945-4346  (Tieline 862 Fax x4426)

Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      (617) 239-1053
8 Grove Street                          (617) 239-1655 - FAX
Wellesley, MA  02181                             

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

             reply	other threads:[~1997-04-11  1:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-11  1:45 Larry Hall [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-04-12 12:20 Chuck Bogorad
1997-04-11 19:45 dahms
1997-04-11 12:03 Larry Hall
1997-04-10 18:19 Larry Hall (RFK Partners Inc 617-239-1053)
1997-04-11  5:36 ` Tim Iverson
1997-04-10 16:50 Mikey
1997-04-10 21:17 ` Tim Iverson
1997-04-10 16:08 Chuck Bogorad
1997-04-09  6:49 Marc Auslander
1997-04-09 14:20 ` Ed Huott
1997-04-10  1:32   ` Tim Iverson
1997-04-10 16:08     ` Ed Huott
1997-04-10 12:18 ` Marc Auslander
1997-04-10 18:19   ` Ed Huott
1997-04-11  5:36   ` kunglao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2.2.32.19970411015452.00939c60@ma.ultranet.com \
    --to=lhall@rfk.com \
    --cc=gnu-win32@cygnus.com \
    --cc=marc@watson.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).