Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!jesup From: jesup@cbmvax.commodore.com (Randell Jesup) Newsgroups: comp.sys.amiga.programmer Subject: Re: AmigaDOS patterns with '~' Message-ID: <18353@cbmvax.commodore.com> Date: 31 Jan 91 08:38:01 GMT References: <04348.AA04348@ami-cg.UUCP> <17879@cbmvax.commodore.com> <18132@cbmvax.commodore.com> <1991Jan29.172553.421@csun.edu> <18313@cbmvax.commodore.com> Reply-To: jesup@cbmvax.commodore.com (Randell Jesup) Organization: Commodore, West Chester, PA Lines: 34 In article vinsci@nic.funet.fi (Leonard Norrgard) writes: >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 ;-) !) Because that only currently works with programs that find files via MatchFirst/MatchNext (where % is implemented). However, almost all programs we supply now go through it (even CD I think). It does NOT work with Open(), Lock(), etc. I will, however, add it to the enhancements list (it sounds like a usable idea). Don't hold your breath, it's too late for the next OS update. Also, I hadn't tested that usage myself. I have worked hard to try to get the pattern-matching close to right for this release. ;-) -- Randell Jesup, Keeper of AmigaDos, Commodore Engineering. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.commodore.com BIX: rjesup The compiler runs Like a swift-flowing river I wait in silence. (From "The Zen of Programming") ;-)