From fa1cefef8d0db44a8557b8e87bfbeaed18695e32 Mon Sep 17 00:00:00 2001 From: rsteube Date: Mon, 31 Jul 2023 19:31:29 +0200 Subject: [PATCH] nushell: single quote needs to be quoted as well --- internal/shell/nushell/action.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/shell/nushell/action.go b/internal/shell/nushell/action.go index e1e026ab5..a8ab870dc 100644 --- a/internal/shell/nushell/action.go +++ b/internal/shell/nushell/action.go @@ -36,7 +36,7 @@ func sanitize(values []common.RawValue) []common.RawValue { func ActionRawValues(currentWord string, meta common.Meta, values common.RawValues) string { vals := make([]record, len(values)) for index, val := range sanitize(values) { - if strings.ContainsAny(val.Value, ` {}()[]<>$&"|;#\`+"`") { + if strings.ContainsAny(val.Value, ` {}()[]<>$&"'|;#\`+"`") { switch { case strings.HasPrefix(val.Value, "~"): val.Value = fmt.Sprintf(`~"%v"`, escaper.Replace(val.Value[1:]))