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

Fix incorrect path reformatting issue #488

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Heunsig
Copy link

@Heunsig Heunsig commented Aug 8, 2024

I have fixed an issue in the __gvm_munge_path() function located in the ~/.gvm/scripts/function/munge_path file. Previously, paths containing spaces were being incorrectly parsed, leading to problems such as /AppData/Local/Programs/Microsoft:VS:Code/bin:/snap/bin, where colons (:) were inserted into the path names.

Because of this, after installing gvm, some terminal commands would result in a "command not found" error.

To resolve this, I updated the script to enclose each path in double quotes ("") when adding them to the array. This ensures paths with spaces are handled correctly.

This fix should solve the following issues: #486 (comment), #487 (comment), #466 (comment)

@pmhofman-se
Copy link

Can we please get this merged?

@Heunsig
Copy link
Author

Heunsig commented Sep 27, 2024

Can we please get this merged?

Looks like the main contributor hasn't had a chance to review this yet

Copy link

@pmhofman-se pmhofman-se left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with this. I am using this implementation already.

@pmhofman-se
Copy link

Has this repo been abandonned when Edgio took over Moov??
Maybe better continue with a fork then....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants