delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/08/15:49: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:message-id:date:from:mime-version:to:cc
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=gSNj3VIxTQbz6Q2A
/zVpIBDE6fSmAGlH01k3SDwY5vObUrHhoaiXK4YuzisqZklWNFpLcTNADp2lkqTf
PFjs3nQbFC53130TcKdVQDYR1iug1ojSrkMsP4EC67KXxeS0d3vwG9VAsbAGeoab
X/uSTqhkQdXN1D8BUgspFfmq+2Y=
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:message-id:date:from:mime-version:to:cc
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=Bobv1/DDyKKt5f+zyFoc6H
ycY4I=; b=QIpgK2PNdwxrxBpyqmnNUePd7wCsfi91tb9azDFIyueFjgvegLDT4B
Wd4qPhVW0FV4iXcO1xXw4QBFVV7LRbskejk0GkU82Ni2sAkUIN0UWbxPNXeglkMM
vBiEjVrtGjkYG9IBYvRTn682HsvwxxZa//g3MZClrBJUSnIdzC0Cs=
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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wi0-f182.google.com
X-Received: by 10.195.12.14 with SMTP id em14mr5548637wjd.15.1396986560193; Tue, 08 Apr 2014 12:49:20 -0700 (PDT)
Message-ID: <534452B8.2030909@gmail.com>
Date: Tue, 08 Apr 2014 20:49:12 +0100
From: Dave Kilroy <kilroyd AT googlemail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: glitchmr AT myopera DOT com
Subject: Re: Possible bug with chere 1.4 when configuring for fish
References: <1396872150 DOT 23888 DOT 103602749 DOT 74ECB5AB AT webmail DOT messagingengine DOT com> <5343282E DOT 7080004 AT gmail DOT com>
In-Reply-To: <5343282E.7080004@gmail.com>

On 07/04/2014 23:35, Dave Kilroy wrote:
> On 07/04/2014 13:02, Ronald Fischer wrote:
>> I have installed fish 2.1.0. Works fine, when invoking a new fish shell
>> manually.
>>
>> However, when doing a
>>
>>     chere -ifcm -t mintty -s fish
>>
>> and invoke the new fish shell from the Windows Explorer context menu, I
>> get plenty of error messages, like this:
>>
>> <snip>
>>
>> (more of this kind follow).
>>
>> This looks like there is a problem the PATH, but this happens even when
>> I use the -2 on chere when installing the shell. Note that bash or zsh
>> shells installed via cygwin work fine.
>>
> Thanks for the report.
>
> I've just checked my x86_64 and x86 installation. Things are working 
> on my installation as I have c:\cygwin\bin on my standard windows 
> path. When I remove it and invoke fish, I get the errors that you 
> highlight. Similarly when echo'ing $PATH under the broken fish, 
> /usr/bin is not one of the entries.
>
> I need to have a play around to see how I can fix this, but I thought 
> cygwin prepended /usr/bin to the path...
>
I've had more time to look around. If you add the following to the file 
~/.config/fish/config.fish (create it if you haven't already got one), 
then things should work as intended:

if status --is-login
	set PATH /usr/local/bin /usr/bin $PATH
end

Alternatively drop it in the fish global startup file, 
/usr/share/fish/config.fish. Konrad, would you consider adding the above 
fragment to config.fish in the next release? That should bring fish into 
line with the other shells*. You might also consider adding some of the 
other environment variables like PRINTER etc etc.


Thanks,

Dave.
---
* FYI
Bash gets /usr/local/bin and /usr/bin prefixed to its path by 
/etc/profile (supplied by base-files)
mksh and posh also use /etc/profile
tcsh gets these prefixed by /etc/csh.login (supplied by tcsh)
zsh uses /etc/zprofile (supplied by zsh)




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