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" To: cygwin AT cygwin DOT com Subject: ^M problem in porting unix programs to window MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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