www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Thu, 17 Jan 2002 09:22:05 -0500 |
From: | Chet Ramey <chet AT nike DOT ins DOT cwru DOT edu> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: A small problem in Shell Scripts while using the built-in "read" function -- Options not recognised |
Reply-To: | chet AT po DOT CWRU DOT Edu |
Message-ID: | <020117142205.AA92465.SM@nike.ins.cwru.edu> |
Read-Receipt-To: | chet AT po DOT CWRU DOT Edu |
MIME-Version: | 1.0 |
X-In-Reply-To: | Message from cygwin AT cygwin DOT com of Thu, 17 Jan 2002 13:31:17 +0100 (id <20020117133117 DOT P2015 AT cygbert DOT vinschen DOT de>) |
> The script is running under sh which is ash, not bash. ash doesn't > know these `read' options. As workaround prepend > > #!/bin/bash > > to your script or start it via `bash -c script'. Why the `-c'? `bash script' should work just fine. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ( ``Discere est Dolere'' -- chet) Chet Ramey, CWRU chet AT po DOT CWRU DOT Edu http://cnswww.cns.cwru.edu/~chet/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |