delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/10/19:06:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 10 Jun 2003 19:04:53 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Shankar Unni <shankar AT cotagesoft DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: latest version of vi messes up bash for me
In-Reply-To: <bc5nfu$odg$1@main.gmane.org>
Message-ID: <Pine.GSO.4.44.0306101901520.25752-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Tue, 10 Jun 2003, Shankar Unni wrote:

> Larry Hall wrote:
>
> > Also, it would be useful to know if vim works for you if you
>  > login to Windows and use cygwin.bat instead.
>
> * If I run cygwin.bat directly from Start/Run..., it works fine. (I mean
> I can start vim, exit, and echo is OK).  (I don't have CYGWIN or TERM
> set in the native Windows system or user environment)
>
> * If I start a "CMD" shell, do "set CYGWIN=tty" and then start bash, and
> from within bash, run vim, again it's OK (by above defn.)
>
> * However, if I start CMD, and within it, directly run as one command
> "env CYGWIN=tty bash", then when I exit vim, bash's echo is turned off.
>
> I suspect this last emulates the setup when login forks off bash (but
> sorry, pure wild-assed guess here).
>
> Cygcheck output attached.

Shankar,

The bash man page says

   An interactive shell is one started without  non-option  arguments  and
   without  the  -c  option  whose standard input and output are both con-
   nected to terminals (as determined by isatty(3)), or one  started  with
   the  -i  option.   PS1 is set and $- includes i if bash is interactive,
   allowing a shell script or a startup file to test this state.

I suspect that your bash may be getting confused about whether it's
running interactively.  Try printing $- from inside bash.  Also try giving
the '-i' option to bash and see if it helps.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019