This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Making Cygwin write DOS style text files
- To: cygwin at sourceware dot cygnus dot com
- Subject: Re: Making Cygwin write DOS style text files
- From: Glenn Spell <glenn at gs dot fay dot nc dot us>
- Date: Sat, 2 Oct 1999 02:49:42 -0400
- Organization: the aerie
- References: <199909290743.DAA05008@dagda.sunflower.com> <2332837762.938635708@isdn194.ellemtel.net>
On 29 Sep 1999 around 8:08PM (+0200) Rabbe Fogelholm wrote:
> [...] but other users out there will think that my Cygwin-based
> script does a poor job if it produces files that "look weird" in
> the Microsoft environment.
>
> So, while I consider the CR LF convention to be among the stupidest
> of this century, I still have to stick to it :-(.
You have been assimilated. :-)
Although not as elegant as awk, you may find Rahul Dhesi's
'flip' useful. There's a Cygwin port with man pages at
<http://www.fay.nc.us/~glenn/cygwin/flip-1.00.tgz>.
> It turns out that I was on a text!=binary mount, and that creating
> a text=binary mount did not solve my problem (either way I get
> files with a single LF as the end-of-line sequence).
I don't understand why you're getting those type files with text
mounts (text!=binary). I use text mounts and only text mounts on
Win95 to achieve what I think you are after. Most files created with
Cygwin tools on my setup have CR/LF pairs for line endings. I thought
that was the purpose of text mounts!
I know the above paragraph doesn't help you but perhaps someone else
may have some idea as to why we get different results.
Can you give me a test case?
-glenn
--
________________________________________ _ _____
) )_ _ (__\____o /_/_ |
) Glenn Spell <glenn@gs.fay.nc.us> ) >-----._/_/__]>
)________________________________________) `0 |
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com