tadzik / rakudobrew

Perl 6 installation manager
MIT License
185 stars 42 forks source link

switch fails on fish shell when an element in PATH contains a whitespace #144

Closed vrurg closed 5 years ago

vrurg commented 5 years ago

The subject says it all. The output looks like this:

Switching to moar-master
set: Variable name 'Fusion.app/Contents/Public:/usr/local/MacGPG2/bin' is not valid. See `help identifiers`.
/opt/local/share/fish/functions/export.fish (line 11):
                set -gx $v $$v
                ^
in function “export”
    called on line 1 of file -
    with parameter list “PATH=/Users/vrurg/.rakudobrew/bin/../versions/moar-master/install/bin:/Users/vrurg/.rakudobrew/bin/../versions/moar-master/install/share/perl6/site/bin:/Users/vrurg/bin:/Users/vrurg/perl5/bin:/Users/vrurg/.rakudobrew/bin:/Users/vrurg/perl6/bin:/Users/vrurg/perl6/share/perl6/site/bin:/Users/vrurg/.local/bin:/opt/local/libexec/gnubin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/MacGPG2/bin”

from sourcing file -
    called on line 61 of file /opt/local/share/fish/functions/eval.fish

in function “eval”
    called on line 6 of file ~/.config/fish/functions/rakudobrew.fish

in function “rakudobrew”
    called on standard input
    with parameter list “switch moar-master”