www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.8 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: | <29105204.post@talk.nabble.com> |
Date: | Thu, 8 Jul 2010 02:47:43 -0700 (PDT) |
From: | "kenny AT ca" <heqing DOT gugle AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: ^M problem in porting unix programs to window |
In-Reply-To: | <29104357.post@talk.nabble.com> |
MIME-Version: | 1.0 |
References: | <29104357 DOT post AT talk DOT nabble DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
Please never mind. ctrl-M is caught. In fact, it lies in makefile. when the path is transferred to perl, ctrl-M is treated as a part of path name. kenny AT ca wrote: > > 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-tp29104357p29105204.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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |