delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/08/05:09:26

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <29104357.post@talk.nabble.com>
Date: Thu, 8 Jul 2010 02:09:09 -0700 (PDT)
From: "kenny AT ca" <heqing DOT gugle AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: ^M problem in porting unix programs to window
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi, there

I am porting a unix project to windows via cygwin. make tool and perl script
are used. The perl script file is called in a makefile to create some
directories and move some files.  All directory names written in the
makefile are edited by emacs under linux, as well as the makefile. So I
believe there is no ctrl-M in the files.

But when I run make under cygwin, all directories are appended with ctrl-M,
like /c/1/2/3^M, where the path of /1/2 is made by make. The perl file is
called with /c/1/2/3 as a path argument by the makefile. I print out the
value of the path variable before and after calling the perl script, and
there is no ctrl-M. Also, I print out the value of path argument in the perl
file, but ctrl-M comes up.

I suspected that it might be caused by bash shell, so I repeated the
procedure using tcsh. The problem still existed. 

In all, the development environment includes cygwin, make, perl, and bash or
tcsh shell. All are installed with cygwin setup.

If someone has experience with it, please advise me. Thanks a lot.
-- 
View this message in context: http://old.nabble.com/%5EM-problem-in-porting-unix-programs-to-window-tp29104357p29104357.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019