From 138d020e1b84005e12e8d4f5557bd6387bf26f51 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 22 Jun 2013 16:22:25 +0300 Subject: Compare internal commands of non-Unix shells on Windows case-insensitively. job.c (construct_command_argv_internal) [WINDOWS32]: Use case-insensitive comparison with internal commands of non-Unix shells. --- job.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'job.c') diff --git a/job.c b/job.c index ef24caa..8b1a8df 100644 --- a/job.c +++ b/job.c @@ -3172,12 +3172,12 @@ construct_command_argv_internal (char *line, char **restp, char *shell, { if (streq (sh_cmds[j], new_argv[0])) goto slow; -# ifdef __EMX__ +#if defined(__EMX__) || defined(WINDOWS32) /* Non-Unix shells are case insensitive. */ if (!unixy_shell && strcasecmp (sh_cmds[j], new_argv[0]) == 0) goto slow; -# endif +#endif } } -- cgit v1.2.3