Skip to content

bad double quote parsing (appears to be all commands) #144

Description

@jhudsoncedaron

Behold:

D:\>"c:\Program Files\coreutils\bin\printf.exe" %s-%s-%s "a""a" "a""a" "a""a"
a"a aa aa--

If I run this through cygwin the expected output appears:

D:\>"c:\cygwin64\bin\printf.exe" %s-%s-%s "a""a" "a""a" "a""a"
a"a-a"a-a"a

So far I've tried this with printf, echo, and xargs but I think all commands are affected.

What I'm trying to do: find | xargs sed -i where the replacement string contains double quote characters.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugIt shouldn't be doing this.E-help-wantedWe encourage you to jump in on these!P-mediumImportant issues, but not urgent. Example: UI doesn't work, but it's not crashing.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions