Add ShellEscapeListIncludingSpaces am: 3a988df18a

Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/1894576

Change-Id: Ibdd319237ef5dd125279ea14fa1d84f53e3d0fcb
This commit is contained in:
Liz Kammer 2021-11-17 01:46:05 +00:00 committed by Automerger Merge Worker
commit 4a7a93e620

View file

@ -53,7 +53,15 @@ func ShellEscapeList(slice []string) []string {
slice[i] = ShellEscape(s) slice[i] = ShellEscape(s)
} }
return slice return slice
}
func ShellEscapeListIncludingSpaces(slice []string) []string {
slice = append([]string(nil), slice...)
for i, s := range slice {
slice[i] = ShellEscapeIncludingSpaces(s)
}
return slice
} }
func shellUnsafeChar(r rune) bool { func shellUnsafeChar(r rune) bool {