This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A small problem in Shell Scripts while using the built-in "read" function -- Options not recognised


On Thu, Jan 17, 2002 at 05:34:24PM +0530, Surendar Singh Bisht wrote:
> 
>  Hi everybody!
> 
>          I'm using bash 2.05.0(8)-release on win98. I'm confronting a small
> problem in shell scripts execution while using the built-in "read" function.
> 
> 
> 
> But the same script executes smoothly when I run this code on the command
> line.

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'.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]