Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fish 3.1.0, module init error #325

Closed
ksmith0 opened this issue Mar 18, 2020 · 2 comments
Closed

fish 3.1.0, module init error #325

ksmith0 opened this issue Mar 18, 2020 · 2 comments
Milestone

Comments

@ksmith0
Copy link

ksmith0 commented Mar 18, 2020

When sourcing environment modules 4.3.0 on fish 3.1.0 the following error is given:

- (line 18): Expected a string, but instead found a '&'
   _module_raw $argv ^&1
                      ^
from sourcing file -
        called on line 21 of file /usr/share/Modules/init/fish
from sourcing file /usr/share/Modules/init/fish
        called on line 1 of file ~/.config/fish/config.fish
from sourcing file ~/.config/fish/config.fish
        called during startup
source: Error while reading file “<stdin>”

This worked without issue on fish 3.0.2, it seems that something has changed.

@ksmith0
Copy link
Author

ksmith0 commented Mar 18, 2020

It seems ^ has been deprecated and 2> should be used instead:
fish-shell/fish-shell#110 (comment)

@xdelaruelle
Copy link
Member

Thanks for this issue report.

2> seems supported since a lot time so it seems safe to replace ^ by 2> even for old fish versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants