Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.
This repository was archived by the owner on May 27, 2025. It is now read-only.

comma_path_value_to_var: Incorrect parsing of quoted variables #35

@dmitry1968

Description

@dmitry1968

Given a sample file:
$ cat 2
a=AB C
b='AB C'
c="AB C"
Attempt to process by comma_path_value_to_var gives:
$ source comma-application-util ; comma_path_value_to_var < 2 ; echo "a=<$a>, b=<$b>, c=<$c>"
C: command not found
a=, b=<'AB C'>, c=<>
Apparently, C in double-quoted right-hand-side is taken as a name of a command, which is an error, and thus never assigned.
Expected output:
a=, b=<'AB C'>, c=
or
a=, b=<'AB C'>, c=<"AB C">

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions