From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29889 invoked by alias); 8 Oct 2014 09:14:14 -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 29873 invoked by uid 89); 8 Oct 2014 09:14:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 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 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; Wed, 08 Oct 2014 09:14:12 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XbnJv-0004ZS-Re for cygwin@cygwin.com; Wed, 08 Oct 2014 11:14:07 +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 ; Wed, 08 Oct 2014 11:14:07 +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 ; Wed, 08 Oct 2014 11:14:07 +0200 To: cygwin@cygwin.com From: Andrew Schulman Subject: fish PATH problem Date: Wed, 08 Oct 2014 09:14:00 -0000 Message-ID: <8du93aldjf5p3r29dcibokhu4dgps0lv21@4ax.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/msg00068.txt.bz2 When I try to start fish directly from the Windows shell instead of from bash, I get a boatload of errors, like this: === /usr/share/fish/functions/type.fish (line 14): if not getopt -T > /dev/null ^ in function 'type', called on standard input, with parameter list '-p command-not-found' in function '__fish_command_not_found_setup', called on line 2 of file '/home/andrex/.config/fish/functions/fish_promp t.fish', with parameter list 'cut' in event handler: handler for generic event 'fish_command_not_found' /usr/share/fish/functions/type.fish (line 26): if not getopt $options $ argv >/dev/null ^ in function 'type', called on standard input, with parameter list '-p command-not-found' in function '__fish_command_not_found_setup', called on line 2 of file '/home/andrex/.config/fish/functions/fish_promp t.fish', with parameter list 'cut' in event handler: handler for generic event 'fish_command_not_found' === and so on. The problem seems to be that the PATH isn't set correctly. PATH doesn't include /bin or /usr/bin: === andrex@ > echo $PATH fish: Unknown command '__fish_pwd' Standard input: echo $_ " "; __fish_pwd ^ in command substitution called on standard input, /win/c/Program Files/Common Files/Microsoft Shared/Microsoft Online Services /wi n/c/Program Files (x86)/Common Files/Microsoft Shared/Microsoft Online Services /win/c/Windows/system32 /win/c/Windows /win/c/Windows/System32/Wbem /win/c/Windo ws/System32/WindowsPowerShell/v1.0 === If I edit /etc/fish/config.fish and add: set PATH /bin /usr/bin $PATH then fish starts normally. Should something like this be added to /etc/fish/config.fish or /usr/share/fish/config.fish? This matters because if I want to make fish my default shell, I need it to start on its own with a usable PATH set. Thanks, 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