Skip to content

Fix incorrect path reformatting issue#488

Open
Heunsig wants to merge 1 commit into
moovweb:masterfrom
Heunsig:fix-incorrectly-reformats-path
Open

Fix incorrect path reformatting issue#488
Heunsig wants to merge 1 commit into
moovweb:masterfrom
Heunsig:fix-incorrectly-reformats-path

Conversation

@Heunsig

@Heunsig Heunsig commented Aug 8, 2024

Copy link
Copy Markdown

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
Copy Markdown

Can we please get this merged?

@Heunsig

Heunsig commented Sep 27, 2024

Copy link
Copy Markdown
Author

Can we please get this merged?

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

@pmhofman-se pmhofman-se left a comment

Copy link
Copy Markdown

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
Copy Markdown

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

@pmhofman-se

Copy link
Copy Markdown

@BenKnigge, are you still maintaining this project?

@weakcamel

Copy link
Copy Markdown

@BenKnigge can this be mergedd pretty please?

This is a fatal bug rendering GVM useless when triggered.

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.

3 participants