Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii 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/