On Wed, Apr 25, 2001 at 10:39:58AM -0400, Jason Tishler wrote:
> Invoking bash 2.05-2 with the "-i" option does not seem to cause problems:
> 
>     $ bash -i
>     $ vi
>     $
> 
> But, if the first line of a shell script contains "-i" then bad things
> happen:
> 
>     $ cat foo.sh
>     #! /bin/bash -i
>     echo hello
>     $ foo.sh
>     $ # *** Note no output -- hello should have been echoed ***
>     $ vi
>     bash: [360: 3] tcsetattr: Not a character device
>                                                 
>                                                     [1]+  Stopped  vi
>     $ stty sane
>     $ jobs
>     [1]-  Stopped                 vi
>     [2]+  Stopped                 stty sane

Just to let you know, I have sent a note to Chet Ramey since I have
no clue why that happens. Hope to get an answer or patch soon.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Reply via email to