Skip to content

__gvm_munge_path incorrectly reformats path incorrectly. #486

Description

@ItamarGronich

Details

gvm shell integration messes up $PATH if one of the paths has a space in it.
It happens in __gvm_munge_path.

For example this path (notice /foo bar/bin):

> echo $PATH
/usr/local/bin:/usr/bin:/bin:/foo bar/bin

will result in this path after bootstrapping GVM:

> echo $PATH
/usr/local/bin:/usr/bin:/bin:/foo:bar/bin

System details

device: Macbook Pro 14inch 2023
CPU: M2 pro
Memory: 32GB
OS: Sonoma 14.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions