Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!news.funet.fi!funic!nic!vinsci From: vinsci@nic.funet.fi (Leonard Norrgard) Newsgroups: comp.sys.amiga.programmer Subject: Re: AmigaDOS patterns with '~' Message-ID: Date: 31 Jan 91 05:46:53 GMT References: <04348.AA04348@ami-cg.UUCP> <17879@cbmvax.commodore.com> <18132@cbmvax.commodore.com> <1991Jan29.172553.421@csun.edu> <18313@cbmvax.commodore.com> Sender: vinsci@nic.funet.fi (Leonard Norrgard) Organization: Soft Service, Inc. Lines: 32 In-Reply-To: daveh@cbmvax.commodore.com's message of 30 Jan 91 18:13:59 GMT In article <18313@cbmvax.commodore.com> daveh@cbmvax.commodore.com (Dave Haynie) writes: 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 >[...] [...] We have an explicit NUL metacharacter, %, for use in AmigaDOS patterns. Thanks Dave! You just provided a solution for another problem! I posted a message the other day requesting an AmigaDOS equivalence for the unix ./filename to denote a file in the current directory (as opposed to a file somewhere in the path). It turns out that %/filename works just great, at least on this version of 2.0. Ie. in a directoy called `tmp': list filename list %/filename list /tmp/%/filename all produce the expected result, corresponding to the following unix ones: ls -l filename ls -l ./filename ls -l ../tmp/./filename Dave Haynie Commodore-Amiga (Amiga 3000) "The Crew That Never Rests" Many thanks! (Randell, why didn't you tell us ;-) !) -- Leonard