Article View: gnu.utils.bug
Article #792file name globbing with tar-1.11
From: 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. */
Technical Details
Message-ID:
<9209110017.AA24585@rangoon.gain.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!gain.COM!jtcShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!gain.COM!jtc From: jtc@gain.COM (J.T. Conklin) Subject: file name globbing with tar-1.11 Message-ID: <9209110017.AA24585@rangoon.gain.com> Sender: gnulists@ai.mit.edu Reply-To: jtc@gain.com Organization: GAIN Technology Inc., Palo Alto, CA Distribution: gnu Date: Thu, 10 Sep 1992 10:17:21 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 26