fix to backslash quoting of glob pattern characters; allow newly-loaded compspecs to be used in more cases; fixes to the cross-compiling environment; avoid potential overflow in GLOBSORT processing

This commit is contained in:
Chet Ramey
2024-05-20 10:48:44 -04:00
parent b3d8c8a4e7
commit dbd27e54cc
18 changed files with 120 additions and 51 deletions
+4 -2
View File
@@ -115,7 +115,7 @@ uw_maybe_pop_dollar_vars (void *ignore)
int
source_builtin (WORD_LIST *list)
{
int result;
int result, search_cwd;
char *filename, *debug_trap, *x;
if (no_options (list))
@@ -137,6 +137,8 @@ source_builtin (WORD_LIST *list)
}
#endif
search_cwd = source_searches_cwd;
filename = (char *)NULL;
/* XXX -- should this be absolute_pathname? */
if (posixly_correct && strchr (list->word->word, '/'))
@@ -159,7 +161,7 @@ source_builtin (WORD_LIST *list)
}
if (filename == 0)
{
if (source_searches_cwd == 0)
if (search_cwd == 0)
{
x = printable_filename (list->word->word, 0);
builtin_error (_("%s: file not found"), x);