-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow escaped characters in variable expansion
Prior to this fix, an escaped character like \x41 (hex for ascii A) was interpreted the same was as A, so that $\x41 would be the same as $A. Fix this by inserting an INTERNAL_SEPARATOR before these escapes, so that we no longer treat it as part of the variable name. This also affects brackets; don't treat echo $foo\1331\135 the same as echo $foo[1]. Fixes #7969
- Loading branch information
1 parent
3f35012
commit 555af37
Showing
3 changed files
with
19 additions
and
1 deletion.
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