Thread View: gnu.utils.bug
1 messages
1 total messages
Started by J.T. Conklin
Thu, 10 Sep 1992 10:17
file name globbing with tar-1.11
Author: J.T. Conklin
Date: Thu, 10 Sep 1992 10:17
Date: Thu, 10 Sep 1992 10:17
25 lines
1332 bytes
1332 bytes
fnmatch(), used by most of the other gnu utilities for file name globbing, allows both `!' and `^' to negate character classes. wildmat(), used by tar-1.11, only allowed `!' until now: *** OLD/wildmat.c Thu Sep 10 17:03:38 1992 --- wildmat.c Thu Sep 10 17:04:32 1992 *************** *** 104,110 **** return(*++p ? Star(s, p) : TRUE); case '[': /* [!....] means inverse character class. */ ! if (reverse = p[1] == '!') p++; for (last = 0400, matched = FALSE; *++p && *p != ']'; last = *p) /* This next line requires a good C compiler. */ --- 104,110 ---- return(*++p ? Star(s, p) : TRUE); case '[': /* [!....] means inverse character class. */ ! if (reverse = (p[1] == '!' || p[1] == '^')) p++; for (last = 0400, matched = FALSE; *++p && *p != ']'; last = *p) /* This next line requires a good C compiler. */
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads