edc / bass

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

Ignore read-only variables #78

Closed kouk closed 4 years ago

kouk commented 4 years ago

These variables cannot be set in fish:

If a script exports this variable an error message bass should not try and set them in fish because this error message will be emitted:

set: Tried to change the read-only variable “_”

In this case it's particularly annoying becausethe underscore variable is automatically set by bash:

Also set to the full pathname used to invoke each command executed and placed in the environment exported to that command.

edc commented 4 years ago

Thanks for the fix!