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:
@@ -1,5 +1,9 @@
|
||||
2002-11-02 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
Bug fix.
|
||||
* src/options.cc (Options::print_options): Escape backquote inside
|
||||
double-quoted strings.
|
||||
|
||||
Bug fix.
|
||||
* src/keyword.cc (KeywordExt::init_selchars): Avoid comparison with
|
||||
uninitialized member variable. Found with 'valgrind'.
|
||||
|
||||
@@ -267,7 +267,7 @@ Options::print_options () const
|
||||
putchar ('"');
|
||||
for (; *arg; arg++)
|
||||
{
|
||||
if (*arg == '\"' || *arg == '\\' || *arg == '$')
|
||||
if (*arg == '\"' || *arg == '\\' || *arg == '$' || *arg == '`')
|
||||
putchar ('\\');
|
||||
putchar (*arg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user