mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-09 03:30:48 +02:00
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:
+4
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user