Skip to content

Make quote escaping posix compliant #69

Description

@harendra-kumar

We need to make it conformant with the shell:

When inside a single quote, \ should be just like any other char, it does not escape a single quote or double quote or itself.

$ echo 'hello\\"world'
hello\\"world

When in double quote it escapes a double quote and itself only.

$ echo "hello\"\\w\'orld"
hello"\w\'orld

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions