Path: utzoo!attcan!uunet!husc6!bbn!rochester!rutgers!gatech!mcnc!rti!sas!toebes
From: toebes@sas.UUCP (John Toebes)
Newsgroups: comp.sys.amiga
Subject: Re: multiple file copy using arp copy, how?
Message-ID: <532@sas.UUCP>
Date: 6 Jun 88 12:48:57 GMT
References: <336@vedge.UUCP> <1234@csuna.UUCP> <2076@sugar.UUCP>
Reply-To: toebes@sas.UUCP (John Toebes)
Organization: SAS Institute Inc, Cary NC
Lines: 33

In article <2076@sugar.UUCP> peter@sugar.UUCP (Peter da Silva) writes:
>> In article <336@vedge.UUCP> lai@vedge.UUCP (David Lai) writes:
>> AmigaDOS's wild cards are surprisingly powerful:
>> 	copy x#?|file1|file2|f3|f4 to dest_dir
>I'm impressed. I don't recall seeing an alternation operator like that in
>the AmigaDOS docs.
>> Unfortunately, the ARP Copy won't do this:  it only gets the first file.
>That's really weird. After all, Jeff Lydiatt's wildcard routines handle
>this case just fine... and I believe that he's associated with ARP. My
>guess, for what it's worth, is they broke the wildcard stuff putting the
>MS-DOS style wildcards in. This is, of course, totally uninformed
>specualation that I engage in to help support my bias against such
>meddling... but there you have it.
Yes, you are right - you are totally uninformed.  Perhaps you might
consider checking your sources first next time.

The wildcard implementation was done from scratch based on algorithms in the
'Software Tools' book.  I coded them by looking at the original AmigaDos
specifications (the 3 white books) and added features as appropriate.  The
final version was recoded in Assembler to take advantage of all the tricks
I could.  Charlie Heath is responsible for the Lion's share of putting
everything together.

In the process I added * as an alias to #? (ABSOLUTELY no difference) and the
code to handle multiple wildcards across multiple directory levels (*/*/*.c).
The implementation does not allow for the alternative operator '|' except
within parenthesis.  If AmigaDos does handle this correctly and consistantly
then it might be worth adding.

/*---------------------All standard Disclaimers apply---------------------*/
/*----Working for but not officially representing SAS or Lattice Inc.-----*/
/*----John A. Toebes, VIII             usenet:...!mcnc!rti!sas!toebes-----*/
/*------------------------------------------------------------------------*/