diff options
author | Bruno Haible <bruno@clisp.org> | 2012-05-11 01:39:04 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2012-05-11 01:39:04 +0200 |
commit | 1f96aa01f72bba8c9a0600280594a1a92bb505fc (patch) | |
tree | 0c00fd48d59f890dd14b4308f503e0b7f611388a /tests | |
parent | 1a7dcb63e0b1c155a0180c88eab028f25937b600 (diff) | |
download | gnulib-1f96aa01f72bba8c9a0600280594a1a92bb505fc.tar.gz |
system-quote, execute, spawn-pipe: Escape '?' on Windows.
* lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
'?' character.
* lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
* tests/test-system-quote-main.c (check_all): Check also strings like
"??????????".
Reported by Eli Zaretskii <eliz@gnu.org>.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-system-quote-main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test-system-quote-main.c b/tests/test-system-quote-main.c index 10fe82308c..018279aeb6 100644 --- a/tests/test-system-quote-main.c +++ b/tests/test-system-quote-main.c @@ -248,6 +248,15 @@ check_all (enum system_command_interpreter interpreter, /* '?' would be interpreted as a wildcard character. */ check_one (interpreter, prog, "?"); + check_one (interpreter, prog, "??"); + check_one (interpreter, prog, "???"); + check_one (interpreter, prog, "????"); + check_one (interpreter, prog, "?????"); + check_one (interpreter, prog, "??????"); + check_one (interpreter, prog, "???????"); + check_one (interpreter, prog, "????????"); + check_one (interpreter, prog, "?????????"); + check_one (interpreter, prog, "??????????"); check_one (interpreter, prog, "foo?bar"); /* '^' would be interpreted in old /bin/sh, e.g. SunOS 4.1.4. */ |