aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-04-19 12:51:19 +0100
committerRon Yorston <rmy@pobox.com>2023-04-19 12:51:19 +0100
commit7b81a44c87cf71dfb4f647ba107624e208ffbefe (patch)
tree3b1c803d823beb677827c0455834ec59d95f539b /include
parent2eeb7a1e5c5242784a0c24a88042f98b9e69963a (diff)
downloadbusybox-w32-7b81a44c87cf71dfb4f647ba107624e208ffbefe.tar.gz
busybox-w32-7b81a44c87cf71dfb4f647ba107624e208ffbefe.tar.bz2
busybox-w32-7b81a44c87cf71dfb4f647ba107624e208ffbefe.zip
win32: case-sensitivity in tab completion
The tab-completion code treated all matches as case-insensitive because that's how Microsoft Windows handles filenames. This is now inadequate, as shell builtins, functions and aliases are case sensitive. Modify the treatment of case-sensitivity in tab completion: - Track whether each potential match is case-insensitive (filename) or case-sensitive (shell builtin, function or alias). - When comparing matches use a case-insensitive comparison if either value is a filename. Otherwise use a case-sensitive comparison. Adds 64 bytes.
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 8dd905c23..3cf0526f2 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -545,7 +545,6 @@ int kill_SIGTERM_by_handle(HANDLE process);
545 545
546char *is_prefixed_with_case(const char *string, const char *key) FAST_FUNC; 546char *is_prefixed_with_case(const char *string, const char *key) FAST_FUNC;
547char *is_suffixed_with_case(const char *string, const char *key) FAST_FUNC; 547char *is_suffixed_with_case(const char *string, const char *key) FAST_FUNC;
548void qsort_string_vector_case(char **sv, unsigned count) FAST_FUNC;
549 548
550#define VT_OUTPUT 1 549#define VT_OUTPUT 1
551#define VT_INPUT 2 550#define VT_INPUT 2