mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
...
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user