diff options
-rw-r--r-- | lib/format/format.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/format/format.go b/lib/format/format.go index 9a675ef0..7c2d5f64 100644 --- a/lib/format/format.go +++ b/lib/format/format.go @@ -91,23 +91,6 @@ func TruncateHead(s string, w int, head string) string { return head + s[pos:] } -func ShellQuote(args []string) string { - quoted := make([]string, len(args)) - - for i, arg := range args { - if strings.ContainsAny(arg, " '\"|&!#$;[](){}<>*\n\t") { - if strings.ContainsAny(arg, "!\"$") { - arg = "'" + arg + "'" - } else { - arg = "\"" + arg + "\"" - } - } - quoted[i] = arg - } - - return strings.Join(quoted, " ") -} - func DummyIfZeroDate(date time.Time, format string, todayFormat string, thisWeekFormat string, thisYearFormat string, ) string { |