g icon indicating copy to clipboard operation
g copied to clipboard

[BUG] WARNING: '' bashmark does not exist

Open wesuRage opened this issue 10 months ago • 3 comments

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

  1. Install the latest version (g-linux-amd64)
  2. Just run it.

Screenshots image

Info (please complete the following information):

  • OS: WSL Debian
  • Version 12

wesuRage avatar Jan 03 '25 02:01 wesuRage

Hey, it's probably because another command is using the g command as an alias.

Here are a few quick checks (generated by AI):

  1. Check what g is:
    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.
  2. List all current aliases:
    Execute:

    alias
    

    Look for an entry like alias g='...' to check if g is set as an alias.

  3. Temporarily Remove the Alias:
    To test if the alias is causing the problem, remove it temporarily:

    unalias g
    

    Then try running g again.

Equationzhao avatar Feb 20 '25 16:02 Equationzhao

Hope this helps!

Equationzhao avatar Feb 20 '25 16:02 Equationzhao