home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.utils.bug
- Path: 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
-
- 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. */
-
-