X-Spam-Check-By: sourceware.org X-IronPort-AV: E=Sophos;i="4.19,199,1183348800"; d="scan'208";a="658949" Subject: Re: Simple shell script not working From: Reid Thompson Reply-To: Reid DOT Thompson AT ateb DOT com To: zip184 Cc: cygwin AT cygwin DOT com In-Reply-To: <11866789.post@talk.nabble.com> References: <11866789 DOT post AT talk DOT nabble DOT com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 30 Jul 2007 13:16:02 -0400 Message-Id: <1185815762.27060.34.camel@jhereg> Mime-Version: 1.0 X-Mailer: Evolution 2.11.5 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Mon, 2007-07-30 at 10:07 -0700, on behalf of zip184 wrote: > This is the 2-line shell script I'm trying to run: > > > #! /bin/sh > > touch test.txt > > > The privledges are set to 777 > > I get the error output line: " bash: $'\r': command not found " > for each command I put in the script, including cd, touch, ls, etc. Echo is > the only one that works for some reason. Anybody have any ideas on how to > fix this? $ dos2unix name-of-2-line-script -- 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/