| www.delorie.com/archives/browse.cgi | search |
| 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:mime-version | |
| :content-type:content-transfer-encoding; q=dns; s=default; b=v2E | |
| i2Gzz3pyky+0y68/7rNUlPP2+WRqM4SHDdoBkeA5uLbMcUu9u9QVZ/BlcmW5Pfn4 | |
| N981MNfGSkBMZbHuYYJzgh4wX/omNzYO65anlr9eTUojXdM/O/rMPF1cSGqpTkN+ | |
| FNu3OoEoAvSQwRhJyF5mix2LKj1L238/WiQNa6Xk= | |
| 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:mime-version | |
| :content-type:content-transfer-encoding; s=default; bh=pN7Y1zzgb | |
| hTcaoV8y87Cyilvn2k=; b=pTiEbBfyvmDKo8wJXxMR1eqhZP7yVFkXD8Cn5mJ3F | |
| 0Qr3HNJuEktmzpzSKdeIiFKklC2m/kYCDyH+FSWxucHjdY/vo8jIBPVqmJQ3D4gt | |
| 2xDw7PYsLfAh47yljMF2GXgdSc2r+T2n/7LJRLvRgpgYRXfRIjMLoQCUZmwvBA9k | |
| wo= | |
| 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.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 |
| To: | cygwin AT cygwin DOT com |
| From: | Andrew Schulman <schulman DOT andrew AT epa DOT gov> |
| Subject: | fish PATH problem |
| Date: | Wed, 08 Oct 2014 05:13:54 -0400 |
| Lines: | 61 |
| Message-ID: | <8du93aldjf5p3r29dcibokhu4dgps0lv21@4ax.com> |
| Mime-Version: | 1.0 |
| X-Archive: | encrypt |
| X-IsSubscribed: | yes |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |