mirror of
https://github.com/mirror/make.git
synced 2025-01-26 20:30:36 +08:00
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.
This commit is contained in:
parent
5b65c5b916
commit
138d020e1b
@ -1,5 +1,9 @@
|
||||
2013-06-22 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* job.c (construct_command_argv_internal) [WINDOWS32]: Use
|
||||
case-insensitive comparison with internal commands of non-Unix
|
||||
shells.
|
||||
|
||||
* main.c (find_and_set_default_shell): Don't use file_exists_p or
|
||||
dir_file_exists_p, as those call readdir, which can fail if PATH
|
||||
includes directories with non-ASCII characters, and that would
|
||||
|
4
job.c
4
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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user