-
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expand: fix parameters with leading/trailing spaces
That is: $ a=" b c " $ echo foo${a}bar foo b c bar rather than our previous incorrect answer: $ a=" b c " $ echo foo${a}bar foob cbar Our error was relying on strings.FieldsFunc, which performs exactly as documented, but is not enough for us - we need to know whether the expanded string has leading or trailing IFS characters. Fixes #886.
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 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