Fix Cygwin compilation error.
authorEli Zaretskii <eliz@gnu.org>
Thu, 2 Oct 2014 15:11:43 +0000 (18:11 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 2 Oct 2014 15:11:43 +0000 (18:11 +0300)
* job.c (construct_command_argv_internal) [HAVE_DOS_PATHS]: Fix
initializer for sh_chars_sh.
Reported by Denis Excoffier<cygwin@Denis-Excoffier.org>.

job.c

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