-
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syntax: add a LangVariant parameter to Quote
I had missed that $'' expansions are non-POSIX, and only implemented by Bash and mksh. So, in POSIX mode, we can't quote non-printable characters. Moreover, fuzzing uncovered that mksh implements \x differently, meaning that we require extra logic to follow its rules. Keep all the fuzz crashers that we found in the process. Since we've started having more edge cases that we can't quote, start returning an error in the API, with a QuoteError type. All it gives right now is a character position and a reason. Finally, document what versions of Bash and mksh we develop with. This matters, because some systems ship with very old versions, which can implement slightly different quoting or escaping rules. While at it, start using quicktest for the tests.
- Loading branch information
Showing
16 changed files
with
318 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.