Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site hoptoad.uucp Path: utzoo!watmath!clyde!amd!!lll-crg!hoptoad!gnu From: gnu@hoptoad.uucp (John Gilmore) Newsgroups: net.micro.amiga Subject: Re: Wild Card Filenames for Amiga Dos Message-ID: <432@hoptoad.uucp> Date: Thu, 16-Jan-86 07:58:13 EST Article-I.D.: hoptoad.432 Posted: Thu Jan 16 07:58:13 1986 Date-Received: Fri, 17-Jan-86 03:30:15 EST References: <2999@vax4.fluke.UUCP> <4795@alice.UUCP> <248@ism780c.UUCP> Organization: Nebula Consultants in San Francisco Lines: 24 In article <248@ism780c.UUCP>, tim@ism780c.UUCP (Tim Smith) writes: > In article <4795@alice.UUCP> sgt@alice.UucP (Steve Tell) writes: > >> [wants wildcard expansion functions in C] > >The above function should exist only in the shell, and do it's work > >there. > Actually, they should exist as a C library, ... *Actually*, the first C library routine to write is opendir()/readdir(). Since this is the standard Unix method of reading directories, this means that programs will port to and from Unix without having to hack up the directory access part of the program. *Then*, if you want to write a regular expression library routine for file name expansion, you can write one that's portable to Unix too [gasp!]. You could even debug it there, where bugs produce core dumps instead of koans, and where there are reasonable debuggers. If somebody is into this, I can send you a PD version of opendir/readdir for Unix systems, and the "man page" description of the routines. -- # I resisted cluttering my mail with signatures for years, but the mail relay # situation has gotten to where people can't reach me without it. Dammit! # John Gilmore {sun,ptsfa,lll-crg,nsc}!hoptoad!gnu jgilmore@lll-crg.arpa # ^^^^^^^ Hoptoad used to be L5.