Skip to content

Quoted empty strings are not recognized as valid arguments #6

@wolfmanx

Description

@wolfmanx

For an argument list with explicit empty strings, the tokenizer fails to produce the correct argv array.

For the following code:

args = tokenizeArgs('some  ""  empty "" args');
console.log(args);

the expected output is:

[ 'some', '', 'empty', '', 'args' ]

but the actual output is:

[ 'some', 'empty', 'args' ]

This is clearly not right.

I have already fixed this in my working directory. I can prepare a pull request, once the fate of pull request #5 is decided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions