public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* fish PATH problem
@ 2014-10-08  9:14 Andrew Schulman
  2014-10-08  9:52 ` Alive4Ever
  0 siblings, 1 reply; 18+ messages in thread
From: Andrew Schulman @ 2014-10-08  9:14 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-10-13 19:44 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-08  9:14 fish PATH problem Andrew Schulman
2014-10-08  9:52 ` Alive4Ever
2014-10-08  9:58   ` Andrew Schulman
2014-10-08 10:08     ` Dave Kilroy
2014-10-08 17:37       ` Alive4Ever
2014-10-09 10:11         ` Dave Kilroy
2014-10-09 14:01           ` Andrew Schulman
2014-10-09 15:35             ` Andrey Repin
2014-10-09 16:44               ` Andrew Schulman
2014-10-09 17:35                 ` Andrey Repin
2014-10-09 21:55                   ` Dave Kilroy
2014-10-10 13:46                     ` Andrew Schulman
2014-10-13 19:44                       ` Dave Kilroy
2014-10-10 17:57                     ` Achim Gratz
2014-10-09 18:01           ` fish PATH problem [ping Konrad] Andrew Schulman
2014-10-10 15:19       ` fish PATH problem Alive
2014-10-10 15:27         ` Andrew Schulman
2014-10-10 15:52           ` Alive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).