delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/09/12:44:41

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=hSqDthEvbXzqka8eNyP1FBeDz0YTHxvja0lBpksWdMKsc4YbeFgQG
qDsJLqTvlSMhbP3AyYwCV0EisaWxEbWA2Ub4DUq0Ycr0ibUxXYWuuUGjoVaPxo4v
TLpUilGnPW8Q/VUHEsdjSlD9db7Vt1XJ+I8ET7PVD3ay+LoxteCZVY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=D3V/PdGKlTdj1PdkAqd/dTQzuX4=; b=xyDtup4ZLWbkifa1FgJHKk3XYVTE
alqGnybrZyIPC9Xx4JQg29P2uR/1GUCO7gwk6cXvmc/7VAwWECBqA/sASHo8QEsr
6NXem4UVO4sr+EQoVF85UOa68DyzHvsewlkT6igwDcPuRkUZqLEP3A69Dt5VyeA1
+X0JGEwiQC9xzUg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Andrew Schulman <schulman DOT andrew AT epa DOT gov>
Subject: Re: fish PATH problem
Date: Thu, 09 Oct 2014 12:44:05 -0400
Lines: 44
Message-ID: <o0ed3ad7127d18huch47u43eohod98hsu9@4ax.com>
References: <8du93aldjf5p3r29dcibokhu4dgps0lv21 AT 4ax DOT com> <gk2a3aduk0idoqs1g1qjv3ij12gin3867p AT 4ax DOT com> <54350D2B DOT 3050103 AT gmail DOT com> <BLU436-SMTP1501DF73E10EF914FF5A637E4A30 AT phx DOT gbl> <54365F3B DOT 9010303 AT gmail DOT com> <h43d3ap1d2s3d2hdms89160k19kr20vaiv AT 4ax DOT com> <988061198 DOT 20141009192356 AT yandex DOT ru>
Mime-Version: 1.0
X-Archive: encrypt
X-IsSubscribed: yes

> Greetings, Andrew Schulman!
> 
> >> Andrew: appreciated if you can confirm whether simply invoking as a
> >> login shell works for you.
> 
> > It sort of works.  When I change my shell to /usr/bin/fish in /etc/passwd
> > and run 
> 
> > C:\cygwin64\bin\mintty.exe -
> 
> > I don't get any error messages, as I first reported.  But the environment
> > isn't set up correctly.  The main problem seems to be that although I'm
> > running 64-bit cygwin, the directory for 32-bit cygwin is mounted as the
> > root filesystem:
> 
> >  ~> cygpath -w /
> > C:\cygwin
> 
> > By comparison when I start fish from bash, I get:
> 
> > aschulma AT LC77E1AASCHULMA ~> cygpath -w /
> > C:\cygwin64
> 
> > This is a pretty serious problem.  Any thoughts on why it happens?
> 
> Initial %PATH% problem?

Andrey, good catch.  My system %PATH% did indeed include C:\cygwin\bin.

So I removed that, and restarted fish.  Good news:  the system mount points
are right again - they point into C:\Cygwin64, not C:\Cygwin.  That's a
relief!

Bad news: the PATH problem is back.  When I run 

C:\cygwin64\bin\fish.exe -l 

I get the same error messages as before on startup, and PATH doesn't
include /bin /usr/bin /sbin /usr/sbin.

How are /bin /usr/bin etc. normally added to the PATH?  I don't see any
logic to do it in /usr/share/fish/config.fish.

Andrew


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

- Raw text -


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