]> Savannah Git Hosting - gnulib.git/commit
quotearg: fix shell-escape quoting with single quotes
authorPádraig Brady <P@draigBrady.com>
Wed, 3 Apr 2024 14:46:47 +0000 (15:46 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 8 Apr 2024 11:12:54 +0000 (13:12 +0200)
commitfb8f3f1790bb818760134b74e9359c157e357e22
tree26db6af40aafa4343d9ccf810c35e083652d783d
parent0e8f9af36f64397be8b5823cf69c1281bef12551
quotearg: fix shell-escape quoting with single quotes

With shell-escape quoting, we misquoted strings
where the first and last characters required escaping,
while the string also contained single quotes.

* lib/quotearg.c (quotearg_buffer_restyled): Ensure that
pending_shell_escape_end is reset to the initial state
when reprocessing input due to single quotes.
Reported by Grisha Levit
ChangeLog
lib/quotearg.c