Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sdd.hp.com!decwrl!csus.edu!ucdavis!csusac!csuchico.edu!mrush From: mrush@csuchico.edu (Matt "C P." Rush) Newsgroups: comp.sys.amiga Subject: Re: tilde in filename Message-ID: <1990Sep08.193638.19329@ecst.csuchico.edu> Date: 8 Sep 90 19:36:38 GMT References: <3166@orbit.cts.com> <14295@cbmvax.commodore.com> Sender: news@ecst.csuchico.edu (USENET) Reply-To: mrush@cscihp.UUCP Organization: California State University, Chico Lines: 29 In article <14295@cbmvax.commodore.com> jjszucs@cbmvax.commodore.com (John J. Szucs) writes: > >The tilde (~) is a new wildcard character used as a logical NOT operator. >It should be placed before the wildcard expression you wish to NOT. Yea! FINALLY a NOT operator for AmigaDOS! >For example: > >1.SYS:> list ~(#?.info) > >will list all files not matching the pattern "#?.info" (all files that do not >end with .info). My question: Does 2.0 feature some kind of NATIVE pattern matching function that can be called by programs that wish to use Amiga wildcard patterns? Something like Manx's scdir() function would be really nice. It seems awfully wasteful to have to put pattern-matching code in EVERY program that wants to use it (list, copy, delete, etc.). -- Matt *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* % "Progress is an up-hill battle % mrush@csuchico.edu % % against backwards compatibility." % mrush@cscihp.UUCP % % -- me % % Now: mrush@cscihp.ecst.csuchico.edu % *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* This is a SCHOOL! Do you think they even CARE about MY opinions?!