]> 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 10:42:17 +0000 (12:42 +0200)
commitbba154a7aa3a26d6abbf6bd11cb8ac417e43d2da
treedf63459facb86872c1726df09411de530dbb36ac
parentb611570f119e878dbddb1236b4f0fa404e5d37d2
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