Compare commits

..

No commits in common. "master" and "v0.0.1" have entirely different histories.

View File

@ -65,6 +65,7 @@ func GetTextQuote(s QuotingStyle) rune {
} }
func Quote( func Quote(
buffer []rune,
arg []rune, arg []rune,
style QuotingStyle, style QuotingStyle,
flags int, flags int,
@ -72,7 +73,6 @@ func Quote(
leftQuote rune, leftQuote rune,
rightQuote rune, rightQuote rune,
) []rune { ) []rune {
var buffer []rune
var elideOuterQuotes bool = (flags & QAElideOuterQuotes) != 0 var elideOuterQuotes bool = (flags & QAElideOuterQuotes) != 0
var pendingShellEscapeEnd bool var pendingShellEscapeEnd bool
var escaping bool var escaping bool
@ -380,6 +380,7 @@ ForceOuterQuotingStyle:
style = ShellEscapeAlwaysQuotingStyle style = ShellEscapeAlwaysQuotingStyle
} }
return Quote( return Quote(
buffer,
arg, arg,
style, style,
flags & ^QAElideOuterQuotes, flags & ^QAElideOuterQuotes,