-
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.
Don't use results of quoted command substitution in adjacent variable…
… expansion Given set var a echo "$var$(echo b)" the double-quoted string is expanded right-to-left, so we construct an intermediate "$varb". Since the variable "varb" is undefined, this wrongly expands to the empty string (should be "ab"). Fix this by isolating the expanded command substitution internally. We do the same when handling unquoted command substitutions. Fixes #8849
- Loading branch information
Showing
3 changed files
with
6 additions
and
0 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