delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/14/17:28:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Date: Thu, 14 Apr 2005 17:28:39 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: kenneth DOT shaffer AT sciatl DOT com
cc: cygwin AT cygwin DOT com
Subject: Re: BASH_VERSION vs cygcheck
In-Reply-To: <Pine.CYG.4.58.0504141537120.2032@Crunch.bcgssbd.sciatl.com>
Message-ID: <Pine.GSO.4.61.0504141721590.2405@slinky.cs.nyu.edu>
References: <Pine DOT CYG DOT 4 DOT 58 DOT 0504141537120 DOT 2032 AT Crunch DOT bcgssbd DOT sciatl DOT com>
MIME-Version: 1.0

On Thu, 14 Apr 2005, Shaffer, Kenneth wrote:

> Should the version info provided by "echo $BASH_VERSION" match the bash
> version displayed by "cygcheck -cd"? If not, is there some way to verify
> that the bash I'm really running is the version displayed by cygcheck?

If you're running a bash that was installed via Cygwin setup, the version
reported by cygcheck should correlate with the value of BASH_VERSION (the
cygcheck-reported version should contain the Cygwin release number, and
$BASH_VERSION may contain extra bits of version info).  IOW, if "cygcheck
-cd bash" reports version 2.05b-17, $BASH_VERSION will probably contain
something like 2.05b.0(1)-release.  The bash executable is unlikely to
know about the Cygwin release number (though it's up to the maintainer
whether it does or not).

> Or, does cygcheck gets its version info from within the executable?

No, cygcheck uses the version of the "bash" package that was installed via
Cygwin setup.  If you installed your own version of bash over the one
installed by setup, cygcheck will probably report incorrect information.
	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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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