mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-12 05:00:50 +02:00
globbing reacts to signals more quickly; new printf %Q format specifier; readline completion handles multiline quotes better
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
along with Bash. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
extern int interrupt_state, terminating_signal;
|
||||
|
||||
struct STRUCT
|
||||
{
|
||||
CHAR *pattern;
|
||||
@@ -81,6 +83,9 @@ fprintf(stderr, "gmatch: pattern = %s; pe = %s\n", pattern, pe);
|
||||
|
||||
sc = n < se ? *n : '\0';
|
||||
|
||||
if (interrupt_state || terminating_signal)
|
||||
return FNM_NOMATCH;
|
||||
|
||||
#ifdef EXTENDED_GLOB
|
||||
/* EXTMATCH () will handle recursively calling GMATCH, so we can
|
||||
just return what EXTMATCH() returns. */
|
||||
|
||||
Reference in New Issue
Block a user