From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19377 invoked by alias); 1 Feb 2009 22:12:20 -0000 Received: (qmail 19368 invoked by uid 22791); 1 Feb 2009 22:12:20 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from n61.bullet.mail.sp1.yahoo.com (HELO n61.bullet.mail.sp1.yahoo.com) (98.136.44.37) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sun, 01 Feb 2009 22:12:16 +0000 Received: from [216.252.122.218] by n61.bullet.mail.sp1.yahoo.com with NNFMP; 01 Feb 2009 22:12:15 -0000 Received: from [69.147.65.170] by t3.bullet.sp1.yahoo.com with NNFMP; 01 Feb 2009 22:12:14 -0000 Received: from [127.0.0.1] by omp505.mail.sp1.yahoo.com with NNFMP; 01 Feb 2009 22:12:14 -0000 Received: (qmail 66111 invoked by uid 60001); 1 Feb 2009 22:12:14 -0000 Received: from [76.112.54.9] by web45203.mail.sp1.yahoo.com via HTTP; Sun, 01 Feb 2009 14:12:14 PST Date: Sun, 01 Feb 2009 22:12:00 -0000 From: Gulshan Singh Reply-To: gsingh_2011@yahoo.com Subject: Bash file not running correctly To: Cygwin Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <778889.64347.qm@web45203.mail.sp1.yahoo.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-02/txt/msg00004.txt.bz2 Hi, I just joined this mailing list and I'm not sure if it's the right place to post questions. If it's not, please direct me to the correct place. I'm having a weird problem when running a bash script. Lets say I make a script called list.sh. I open it in notepad and type ls. Then I go to the Cygwin bash shell and type ./list.sh. The list command works fine. Now let's say the file looked like this ls #This will list the files in the directory When I run this, the Cygwin shell will say "list.sh: line 1: $'ls\r': command not found". I think the \r has to do with a new line when I push enter. So basically I can't run anything longer than one line. Anyone know how to fix this? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/