1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 21:19:24 +00:00

Escape backquotes in shell-escape function.

This commit is contained in:
Bruno Haible
2002-12-05 13:03:20 +00:00
parent e7c9757f68
commit ada729a2f5
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
2002-11-02 Bruno Haible <bruno@clisp.org> 2002-11-02 Bruno Haible <bruno@clisp.org>
Bug fix.
* src/options.cc (Options::print_options): Escape backquote inside
double-quoted strings.
Bug fix. Bug fix.
* src/keyword.cc (KeywordExt::init_selchars): Avoid comparison with * src/keyword.cc (KeywordExt::init_selchars): Avoid comparison with
uninitialized member variable. Found with 'valgrind'. uninitialized member variable. Found with 'valgrind'.

View File

@@ -267,7 +267,7 @@ Options::print_options () const
putchar ('"'); putchar ('"');
for (; *arg; arg++) for (; *arg; arg++)
{ {
if (*arg == '\"' || *arg == '\\' || *arg == '$') if (*arg == '\"' || *arg == '\\' || *arg == '$' || *arg == '`')
putchar ('\\'); putchar ('\\');
putchar (*arg); putchar (*arg);
} }