edc / bass

Make Bash utilities usable in Fish shell
MIT License
2.2k stars 70 forks source link

%WSLENV%: invalid variable name #110

Closed daniel-shuy closed 10 months ago

daniel-shuy commented 10 months ago

When using bass in WSL, the command works, but an error is displayed:

set: %WSLENV%: invalid variable name. See `help identifiers`

From debugging with -d, the temp script file generated by __bass.py contains:

set -g -x %WSLENV% ""
edc commented 10 months ago

Can you test the fix and let me know if it works?

daniel-shuy commented 10 months ago

It worked, thanks for the quick fix!

This was due to configuring WSL to use GCM (git-credential-manager) for Windows without installing Git for Windows (https://github.com/git-ecosystem/git-credential-manager/blob/release/docs/wsl.md#configuring-wsl-without-git-for-windows).