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 <Reid.Thompson@ateb.com>
Reply-To: Reid.Thompson@ateb.com
To: zip184 <btillinghast@profittools.net>
Cc: cygwin@cygwin.com
In-Reply-To: <11866789.post@talk.nabble.com>
References: <11866789.post@talk.nabble.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@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

