From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13316 invoked by alias); 10 Oct 2014 13:46:24 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 13305 invoked by uid 89); 10 Oct 2014 13:46:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 10 Oct 2014 13:46:22 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XcaWN-0005qD-O6 for cygwin@cygwin.com; Fri, 10 Oct 2014 15:46:15 +0200 Received: from c-69-140-37-22.hsd1.md.comcast.net ([69.140.37.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Oct 2014 15:46:15 +0200 Received: from schulman.andrew by c-69-140-37-22.hsd1.md.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Oct 2014 15:46:15 +0200 To: cygwin@cygwin.com From: Andrew Schulman Subject: Re: fish PATH problem Date: Fri, 10 Oct 2014 13:46:00 -0000 Message-ID: References: <8du93aldjf5p3r29dcibokhu4dgps0lv21@4ax.com> <54350D2B.3050103@gmail.com> <54365F3B.9010303@gmail.com> <988061198.20141009192356@yandex.ru> <1938036834.20141009212648@yandex.ru> <54370457.8060905@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive: encrypt X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00117.txt.bz2 > On 09/10/2014 18:26, Andrey Repin wrote: > > Greetings, Andrew Schulman! > > > >> 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. > > That logic probably should be included. > > At least, bash does that in login files. > > > > That was my conclusion as well*. Question is, should fish provide the > configuration, or should base-files cover all shells? > > Andrew: thanks for confirming. If you're still looking for the logic and > where to put it, I suggested something in * as well. OK, I rolled a new release of fish 2.1.1: x86: http://home.comcast.net/~andrex2/cygwin/x86/fish-2.1.1-1.tar.xz http://home.comcast.net/~andrex2/cygwin/x86/fish-2.1.1-1-src.tar.xz x86_64: http://home.comcast.net/~andrex2/cygwin/x86_64/fish-2.1.1-1.tar.xz http://home.comcast.net/~andrex2/cygwin/x86_64/fish-2.1.1-1-src.tar.xz It adds the following improvements in /etc/fish/config.fish: * Prepends /usr/local/bin /bin to PATH. This solves the PATH errors for me. * Changes to the home directory in login shells. * sources all scripts /etc/profile.d/*.fish. So far I think there are few or none of those, but once fish supports them, some will start to appear, especially if we can get cygport to start creating them. I think that's the best answer to your question about base-files. I looked in /etc/profile to see if it might be made to support fish too, but I don't think so. It's too sh-centric. fish's syntax is too different. So if fish supports /etc/profile.d on its own, then we can just leave it at that. Please try it out, and let me know how it works for you. If it's okay and if Konrad doesn't answer, then I'll adopt the package and put out the new release. I've switched to using fish as my default shell now, so I want to see it maintained. 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