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]

Re: bash 2.05 broken -i flag


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:cygwin@cygwin.com
Red Hat, Inc.

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


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