Skip to content

Field separators inside double quotes create a new field #369

@stn-ptr

Description

@stn-ptr

Using this file:

a;b
"text; text";"more text"

I'm getting an unexpected result:

mlr --inidx --fs semicolon cat doublequote.csv
1=a;2=b
1="text;2= text";3="more text"

I'd expect the semicolon inside the double quotes in the first field not to be used as a field separator. This seems to be an issue with using the --inidx and --fs options, as using --icsv or using commas in the file and omitting the --fs option works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions