This commit is contained in:
Kovid Goyal 2023-01-04 11:15:47 +05:30
parent c83a8b0773
commit 779a7b7deb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -27,7 +27,6 @@ func QuoteStringForFish(x string) string {
// Escapes common shell meta characters // Escapes common shell meta characters
func EscapeSHMetaCharacters(x string) string { func EscapeSHMetaCharacters(x string) string {
const metachars = "\\|&;<>()$'\" \n\t"
ans := strings.Builder{} ans := strings.Builder{}
ans.Grow(len(x) + 32) ans.Grow(len(x) + 32)
for _, ch := range x { for _, ch := range x {