Fix Cygwin compilation error.

* job.c (construct_command_argv_internal) [HAVE_DOS_PATHS]: Fix
initializer for sh_chars_sh.
Reported by Denis Excoffier<cygwin@Denis-Excoffier.org>.
This commit is contained in:
Eli Zaretskii 2014-10-02 18:11:43 +03:00
parent 7df0fe77d8
commit 31c2024b2e

5
job.c
View File

@ -2697,8 +2697,9 @@ construct_command_argv_internal (char *line, char **restp, const char *shell,
# ifdef HAVE_DOS_PATHS # ifdef HAVE_DOS_PATHS
/* This is required if the MSYS/Cygwin ports (which do not define /* This is required if the MSYS/Cygwin ports (which do not define
WINDOWS32) are compiled with HAVE_DOS_PATHS defined, which uses WINDOWS32) are compiled with HAVE_DOS_PATHS defined, which uses
sh_chars_sh directly (see below). */ sh_chars_sh directly (see below). The value must be identical
static const char *sh_chars_sh = sh_chars; to that of sh_chars immediately above. */
static const char *sh_chars_sh = "#;\"*?[]&|<>(){}$`^~!";
# endif /* HAVE_DOS_PATHS */ # endif /* HAVE_DOS_PATHS */
#endif #endif
int i; int i;