diff options
author | Ron Yorston <rmy@pobox.com> | 2023-04-19 12:51:19 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-04-19 12:51:19 +0100 |
commit | 7b81a44c87cf71dfb4f647ba107624e208ffbefe (patch) | |
tree | 3b1c803d823beb677827c0455834ec59d95f539b /include | |
parent | 2eeb7a1e5c5242784a0c24a88042f98b9e69963a (diff) | |
download | busybox-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.h | 1 |
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 | ||
546 | char *is_prefixed_with_case(const char *string, const char *key) FAST_FUNC; | 546 | char *is_prefixed_with_case(const char *string, const char *key) FAST_FUNC; |
547 | char *is_suffixed_with_case(const char *string, const char *key) FAST_FUNC; | 547 | char *is_suffixed_with_case(const char *string, const char *key) FAST_FUNC; |
548 | void 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 |