commit bash-20190109 snapshot

This commit is contained in:
Chet Ramey
2019-01-10 11:56:16 -05:00
parent 5cc55f2f73
commit 605528a7c0
12 changed files with 123 additions and 24 deletions
-6
View File
@@ -54,17 +54,11 @@ INTERNAL_GLOB_PATTERN_P (pattern)
continue;
case L('\\'):
#if 0
/* Don't let the pattern end in a backslash (GMATCH returns no match
if the pattern ends in a backslash anyway), but otherwise return 1,
since the matching engine uses backslash as an escape character
and it can be removed. */
return (*p != L('\0'));
#else
/* The pattern may not end with a backslash. */
if (*p++ == L('\0'))
return 0;
#endif
}
return 0;