delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/30/13:17:09

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 DOT Thompson AT ateb DOT com>
Reply-To: Reid DOT Thompson AT ateb DOT com
To: zip184 <btillinghast AT profittools DOT net>
Cc: cygwin AT cygwin DOT com
In-Reply-To: <11866789.post@talk.nabble.com>
References: <11866789 DOT post AT talk DOT nabble DOT com>
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
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019