Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make quote escaping posix compliant #69

Open
harendra-kumar opened this issue Apr 27, 2023 · 2 comments
Open

Make quote escaping posix compliant #69

harendra-kumar opened this issue Apr 27, 2023 · 2 comments
Assignees
Milestone

Comments

@harendra-kumar
Copy link
Member

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
@adithyaov
Copy link
Member

$ echo 'hello\'
hello\

See composewell/streamly#2397

@adithyaov adithyaov changed the title Fix escape processing inside single and double quotes Make quote escaping posix compliant Apr 27, 2023
@adithyaov
Copy link
Member

Uncomment the failing test case after fixing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants