Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!ncr-sd!greg From: greg@ncr-sd.SanDiego.NCR.COM (Greg Noel) Newsgroups: comp.sys.amiga Subject: Re: AmigaDos vs Unix wildcards/pathnames Message-ID: <1189@ncr-sd.SanDiego.NCR.COM> Date: 29 Mar 89 01:41:50 GMT References: <11135@ut-emx.UUCP> <10260015@eecs.nwu.edu> <976@quintus.UUCP> Organization: NCR Corporation, Rancho Bernardo Lines: 15 In article <976@quintus.UUCP> pds@quintus.UUCP (Peter Schachte) writes: >... the wildcard matching routines should be written and included in >a library .... the shared library should supply >standard routines called InitArguments(), NextFileArgument() and >NextNonfileArgument(). .... The idea is a good one, but the interface could be cleaner. Instead of being a \new/ set of routines, it should be an extension to the standard getopt() routines -- they are already used to scan the argument list, and it would be simple to define an additional set of routines that work with them. It might even be possible to cause the default invocation (that is, not using the extra semantics) to automagically expand any wildcards, although that would be tricky and potentially hazardous..... -- -- Greg Noel, NCR Rancho Bernardo Greg.Noel@SanDiego.NCR.COM or greg@ncr-sd