| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| From: | "Andre Oliveira da Costa" <costa AT cade DOT com DOT br> |
| To: | "Cygwin" <cygwin AT sourceware DOT cygnus DOT com> |
| Subject: | Getting rid of the CR |
| Date: | Thu, 2 Dec 1999 18:21:32 -0200 |
| Message-ID: | <002001bf3d02$d2fdf1b0$8400000a@costa.cadenet.com.br> |
| MIME-Version: | 1.0 |
| X-Priority: | 3 (Normal) |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook 8.5, Build 4.71.2173.0 |
| Importance: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.2106.4 |
Hi, at the risk of asking something really stupid, I'll throw this one: The scenario: all my include (.h) files were in DOS format (don't ask me why... maybe because my first installation of B20.1 mounted / as textmode), and this was confusing gcc's preprocessor. All my mounts are binary now. My first approach to solve this was this small bash script: #!/bin/sh ex $1 << EOF set ff=unix wq EOF (the 'ex' program I'm using is a link to vim 5.5, which is able to convert DOS-->UNIX by simply setting the appropriate file type) The script runs without complaints, but doesn't work =T (i.e. the files remain in DOS mode) The point is: if I do the same ex editing on the command line: ex some-file set ff=unix wq it works -- the file is overwritten in UNIX format. Any hint why it doesn't work on my here document? BTW: After some useless fight, I modified the script to use 'tr', which gets the job done as well, but forces me to use a temporary file... TIA, Andre -- André Oliveira da Costa (costa AT cade DOT com DOT br) -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |