delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/28/19:16: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, 28 Jan 2003 19:16:33 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Soren A <soren_andersen AT fastmail DOT fm>
cc: cygwin AT cygwin DOT com
Subject: Re: DOS <-> Bash interaction...
In-Reply-To: <Xns9311A35159CA2soren1Gmane@80.91.224.249>
Message-ID: <Pine.GSO.4.44.0301281908380.26400-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Tue, 28 Jan 2003, Soren A wrote:

> Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> wrote around 28 Jan 2003
> news:Pine DOT GSO DOT 4 DOT 44 DOT 0301281140120 DOT 26400-100000 AT slinky DOT cs DOT nyu DOT edu:
>
> > If you get something different as the first entry, your /etc/profile does
> > *append* the standard paths to the contents of $PATH.  This means you've
> > probably changed it at some point in the past.  Change it back.
>
> Right. And yes, I have read the rest of the articles in the thread, but
> found that one question gets left behind immediately, in the course of
> running down the PATH issue: that was, the very top issue Hannu raised,
> which is "what does $SHELL contain"? I am wondering what Cygwin does by
> default -- I have been using highly modified bash initialization files
> for a very long time now and so I cannot find out by merely going and
> looking at my own.
>
> Do any of the init files that bash reads set, query or export SHELL?
> Would it be a good idea for them to do so?
>
> It seems to me that when I set up Cygwin (my installation on Win98SE
> thereof, that is), I had to set SHELL and export it, in my bash init
> file, when I worked on achieving good integration with the editor GVIM
> (the Win32 GUI version of the VIM editor). This memory-impression
> suggests that Cygwin isn't exporting SHELL by default. Confirm or
> denials, anyone? ;-)
>
> I actually have 3 "choices" of SHELL on this Win98 box, because I've
> installed a partly-functioning CMD.exe from a Win2K SDK release by M$.
> So I have available a command.com, a CMD.exe, and a bash.exe. I *always*
> want to be using the bash.exe in connection with any Cygwin stuff I am
> doing, but in the past have wanted CMD.exe, for instance, in connection
> with other things (MinGW-ish, but that's OT here...). Almost never
> do I intentionally want command.com, of course.
>
> This is all rhetorical and general-interest for me personally, since I
> already have Cygwin doing what I want it to in these areas. I am not
> calling for a change of any specific sort, just asking for discussion
> for the purposes of increasing general understanding.
>    Soren A

Frankly, I initially dismissed this issue, since I was sure bash exported
SHELL to be /bin/bash when run.  However, now I see that this only happens
if SHELL was not previously set.

IMO, it's up to the individual user preference whether they want SHELL
replaced by the currently running shell, or whether they want full control
over what the value of $SHELL is.  For most users, however, it would
probably be better if the shell is set to something Cygwin-ish when under
Cygwin.  Maybe the default /etc/profile should contain a line setting
SHELL that power users can then comment out?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


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

- Raw text -


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