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

2002-01-18 Thread Michael A Chase
orinna Vinschen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 22:03 Subject: RE: A small problem in Shell Scripts while using the built-in "read" function -- Options not recognised > Corinna Thanks !! & Thanks Chet!! > > The Wo

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

2002-01-17 Thread Surendar Singh Bisht
m in Shell Scripts while using the built-in "read" function -- Options not recognised > 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 v

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

2002-01-17 Thread Corinna Vinschen
On Thu, Jan 17, 2002 at 11:09:53AM -0500, Chet Ramey wrote: > > Chet, did you apply the pathcanon.c patch I've send you on 2001-11-17? > > The `_is_cygdrive()' patch? Yes. Thanks! Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer

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

2002-01-17 Thread Chet Ramey
> Chet, did you apply the pathcanon.c patch I've send you on 2001-11-17? The `_is_cygdrive()' patch? Yes. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ( ``Discere est Dolere'' -- chet) Chet Ramey, CWRU[EMAIL PROTECTED]http://cnswww.cns.cwru.edu/~chet/ -- Unsubscribe

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

2002-01-17 Thread Corinna Vinschen
On Thu, Jan 17, 2002 at 09:22:05AM -0500, Chet Ramey wrote: > > 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 scri

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

2002-01-17 Thread Chet Ramey
> 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 l

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

2002-01-17 Thread Corinna Vinschen
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

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

2002-01-17 Thread Surendar Singh Bisht
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. I'm using a script echo "Give me a