summaryrefslogtreecommitdiff
path: root/lib/system-quote.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-05-12 11:25:17 +0200
committerBruno Haible <bruno@clisp.org>2012-05-12 11:25:17 +0200
commit5152a76ba011489dcf6b848e5b244319b6942a5f (patch)
tree02a1c64769b8a691561cbfa57ab508a69c46985d /lib/system-quote.h
parentc25bdbae48977a527dff69150f59fb0746d31b51 (diff)
downloadgnulib-5152a76ba011489dcf6b848e5b244319b6942a5f.tar.gz
sh-quote, system-quote: Add comments about wildcards.
* lib/sh-quote.h: Clarify what happens with wildcard characters. * lib/system-quote.h: Likewise. Reported by Eli Zaretskii <eliz@gnu.org>.
Diffstat (limited to 'lib/system-quote.h')
-rw-r--r--lib/system-quote.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/system-quote.h b/lib/system-quote.h
index d5f29780b7..48d59efaa1 100644
--- a/lib/system-quote.h
+++ b/lib/system-quote.h
@@ -20,14 +20,16 @@
/* When passing a command the system's command interpreter, we must quote the
program name and arguments, since
- - Unix shells interpret characters like " ", "'", "<", ">", "$" etc. in a
- special way,
+ - Unix shells interpret characters like " ", "'", "<", ">", "$", '*', '?'
+ etc. in a special way,
- Windows CreateProcess() interprets characters like ' ', '\t', '\\', '"'
etc. (but not '<' and '>') in a special way,
- Windows cmd.exe also interprets characters like '<', '>', '&', '%', etc.
in a special way. Note that it is impossible to pass arguments that
contain newlines or carriage return characters to programs through
- cmd.exe. */
+ cmd.exe.
+ - Windows programs usually perform wildcard expansion when they receive
+ arguments that contain unquoted '*', '?' characters. */
#include <stddef.h>