X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Date: Sun, 1 Feb 2009 14:12:14 -0800 (PST) From: Gulshan Singh Reply-To: gsingh_2011 AT yahoo DOT 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 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, 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/