Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cbmvax!daveh From: daveh@cbmvax.commodore.com (Dave Haynie) Newsgroups: comp.sys.amiga.programmer Subject: Re: AmigaDOS patterns with '~' Message-ID: <18313@cbmvax.commodore.com> Date: 30 Jan 91 18:13:59 GMT References: <04348.AA04348@ami-cg.UUCP> <17879@cbmvax.commodore.com> <18132@cbmvax.commodore.com> <1991Jan29.172553.421@csun.edu> Reply-To: daveh@cbmvax.commodore.com (Dave Haynie) Organization: Commodore, West Chester, PA Lines: 18 In article <1991Jan29.172553.421@csun.edu> swalton@solaria.csun.edu (Stephen Walton) writes: >However , the behavior of the final ~ is consistent, I think. Since ~ NOT's >the following expression, the string #?~ matches everything (that is, it >matches all file names which consist of any string followed by >not-the-null-string). Operators like # and ~ always have to have a target character or expression to operate on, at least according to the original pattern matching rules. The end-of-line isn't an implied NUL character, or at least, it shouldn't be. We have an explicit NUL metacharacter, %, for use in AmigaDOS patterns. >Steve -- Dave Haynie Commodore-Amiga (Amiga 3000) "The Crew That Never Rests" {uunet|pyramid|rutgers}!cbmvax!daveh PLINK: hazy BIX: hazy "What works for me might work for you" -Jimmy Buffett