delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/25/19:19:03

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: Fri, 25 Apr 2003 19:18:50 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Qwer Zxcv <partner4progress AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: rollback procedure, was: what determines cygwin path?
In-Reply-To: <20030425230615.93827.qmail@web14811.mail.yahoo.com>
Message-ID: <Pine.GSO.4.44.0304251911170.10996-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Fri, 25 Apr 2003, Qwer Zxcv wrote:

> Qwer Zxcv wrote:
> >>>> So what I'd like to know is, how is cygwin's path determined?
> >>>> (Apparently not entirely by the windows path, at least not by
> >>>> default.) And how do I fix it?
>
> Max Bowsher wrote:
> >>> Windows + /etc/profile + any user customisation.
>
> Qwer Zxcv wrote:
> >> What I don't know is, in
>
> >> > PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
>
> >> * Where are
>
> >>   /usr/local/bin:/usr/bin:/bin
>
> >>   set?
>
> Igor Pechtchanski wrote:
> > "man mount"
>
> Doesn't help much when yr cygwin's down, but, find another box and DOH!
> I forgot the mount table was in the REGISTRY ! So I fix that, and now
> my old cygwin is working again :-)

The "mount.exe" program will run even if the mounts are all gone (as long
as it's invoked via an absolute path or from the current directory and
cygwin1.dll is in the same directory).

> Despite the apparent deprecation of this line of inquiry, I'd still
> like to document rollback for those who are inclined to "install
> defensively." Does the following rollback procedure sound more-or-less
> correct/complete? (Note that it assumes that one's new cygwin is not
> working.)
>
> 0 Change windows path to point (only) to the old version. Cygwin
>   references should precede windows references.
>
> 1 Use 'regedit' to ensure that entries in
>
> HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
>
>   notably
>
> /usr/bin
> /usr/lib
> /usr/X11R6/lib/X11/fonts
>
>   point (only) to the old version.

No, no, no, no, NO!
It's been stated time and time again on this list that going to the
registry is an unsafe and nonportable way of manipulating the mount table.
Especially when mount.exe does a very adequate job.  There already are
plans (and code, AFAIK, though not in the production system) to store the
mount table in a file instead of in the registry.  Please manipulate the
mount table only by using mount.exe (or setup.exe).

> 2 Find or recreate a shortcut to one's old bash-running batchfile.

You can make a backup copy of the shortcut.  You can, in fact, have
multiple shortcuts.  This still doesn't avoid the fact that you cannot
have multiple versions of cygwin1.dll running at the same time (and even
having two different versions on the same machine is dangerous -- you'd do
better by renaming the old cygwin1.dll to old-cygwin1.dll, for example).
	Igor

> 3 Run bash, check for weirdness.
> 4 'cygcheck -svr', check for weirdness.
-- 
				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!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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