g
g copied to clipboard
[BUG] WARNING: '' bashmark does not exist
Describe the bug
When I run g with any flag, it says: bash: DIR_<flag>: invalid variable name
When I run only g, it says: WARNING: '' bashmark does not exist
To Reproduce
- Install the latest version (g-linux-amd64)
- Just run it.
Screenshots
Info (please complete the following information):
- OS: WSL Debian
- Version 12
Branch issue-201-_BUG_WARNING_bashmark_does_not_exist created!
Hey, it's probably because another command is using the g command as an alias.
Here are a few quick checks (generated by AI):
-
Check what
gis:
Run the following command:type g- If the output is
g is /xxx/g(the file you just downloaded), then it's probably working as expected. - If it says something like
g is aliased to ..., then it's being overridden by an alias, which might be causing the issue.
- If the output is
-
List all current aliases:
Execute:aliasLook for an entry like
alias g='...'to check ifgis set as an alias. -
Temporarily Remove the Alias:
To test if the alias is causing the problem, remove it temporarily:unalias gThen try running
gagain.
Hope this helps!