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

source-sh and sh-to-mod fail with fish 3.5 #463

Closed
xdelaruelle opened this issue Jun 19, 2022 · 1 comment
Closed

source-sh and sh-to-mod fail with fish 3.5 #463

xdelaruelle opened this issue Jun 19, 2022 · 1 comment
Labels
Milestone

Comments

@xdelaruelle
Copy link
Member

Evaluation of fish shell script through the source-sh modulefile command fails with latest fish version (3.5).

$ fish --version
fish, version 3.5.0
$ module --version
Modules Release 5.1.1 (2022-05-31)
$ module use testsuite/modulefiles.2
$ cat testsuite/modulefiles.2/source-sh/7.2
#%Module
source-sh fish testsuite/example/sh-to-mod.fish
module-whatis [module-info name]
$ module load source-sh/7.2
Loading source-sh/7.2
  Module ERROR: Script 'testsuite/example/sh-to-mod.fish' exited abnormally
        while executing
    "source-sh fish testsuite/example/sh-to-mod.fish"
        (file "/path/to/modules/testsuite/modulefiles.2/source-sh/7.2" line 2)
    Please contact <root@localhost>

Issue also impacts sh-to-mod sub-command:

$ module sh-to-mod fish testsuite/example/sh-to-mod.fish
ERROR: Script 'testsuite/example/sh-to-mod.fish' exited abnormally
@xdelaruelle
Copy link
Member Author

Issue is due to the regex-easyesc option which is now turned on by default: https://fishshell.com/docs/current/relnotes.html?highlight=fish_features#fish-3-5-0-released-june-16-2022

@xdelaruelle xdelaruelle added this to the 5.2 milestone Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant