Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!rutgers!cbmvax!daveh From: daveh@cbmvax.commodore.com (Dave Haynie) Newsgroups: comp.sys.amiga.programmer Subject: Re: How do you use shell wild cards in a program? Message-ID: <20125@cbmvax.commodore.com> Date: 26 Mar 91 15:29:00 GMT References: <1991Mar22.170715.14128@ucselx.sdsu.edu> Reply-To: daveh@cbmvax.commodore.com (Dave Haynie) Organization: Commodore, West Chester, PA Lines: 22 In article <1991Mar22.170715.14128@ucselx.sdsu.edu> maxc0949@ucselx.sdsu.edu (Victor Martinez) writes: > How do you does a program use wild cards from the shell? Does the >shell pass a modified argv to a program or is it up to the program to >expand the wild cards? I hope the shell expands the wild cards for the >program. I am using Wshell on a A3000. Most Amiga shells pass the wildcards to the program, though a few of the UNIX flavored shells may do wildcard expansion for you. Under 2.0, there are DOS library functions to expand wildcards in various ways. There is no such facility in 1.3, though I did a wildcard matching routine for DiskSalv V1.4x, and split off the code as a separate demo which I placed in the public domain. My code only matches 1.3 wildcards; 2.0 adds character sets and negation not part of the 1.3 specification, which I suppose could be hacked into my code (character sets would be easy, negation not-so-easy). This was posted awhile back, but I'll email it to anyone in need. -- Dave Haynie Commodore-Amiga (Amiga 3000) "The Crew That Never Rests" {uunet|pyramid|rutgers}!cbmvax!daveh PLINK: hazy BIX: hazy "That's me in the corner, that's me in the spotlight" -R.E.M.