This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Simple shell script not working
- From: Reid Thompson <Reid dot Thompson at ateb dot com>
- To: zip184 <btillinghast at profittools dot net>
- Cc: cygwin at cygwin dot com
- Date: Mon, 30 Jul 2007 13:16:02 -0400
- Subject: Re: Simple shell script not working
- References: <11866789.post@talk.nabble.com>
- Reply-to: Reid dot Thompson at ateb 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/