Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: "Cygwin" 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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