| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| X-Ninja-PIM: | Scanned by Ninja |
| X-Ninja-AttachmentFiltering: | (no action) |
| MIME-Version: | 1.0 |
| Subject: | RE: Simple shell script not working |
| Date: | Mon, 30 Jul 2007 10:50:54 -0700 |
| Message-ID: | <14CFC56C96D8554AA0B8969DB825FEA0037FAEB2@chicken.machinevisionproducts.com> |
| From: | "Brian D. McGrew" <brian AT visionpro DOT com> |
| To: | "zip184" <btillinghast AT profittools DOT net>, <cygwin AT cygwin DOT com> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.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 |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id l6UHqJKg024974 |
What are you using for an editor? Try it with vi, nedit or emacs.
Sounds like you've got DOS new-line characters on each line.
-brian
Brian D. McGrew { brian AT visionpro DOT com ||
brian AT doubledimension DOT com }
--
> Do not read this email while waxing that cat!
-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf
Of zip184
Sent: Monday, July 30, 2007 10:08 AM
To: cygwin AT cygwin DOT com
Subject: Simple shell script not working
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?
--
View this message in context:
http://www.nabble.com/Simple-shell-script-not-working-tf4171206.html#a11
866789
Sent from the Cygwin Users mailing list archive at Nabble.com.
--
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/
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |