Newsgroups: comp.arch Path: utzoo!utgpu!cunews!dgbt!don From: don@dgbt.doc.ca (Donald McLachlan) Subject: Re: Globbing Message-ID: <1991Feb18.152347.28521@dgbt.doc.ca> Sender: don@dgbt.doc.ca (Donald McLachlan) Organization: The Communications Research Centre, Ottawa, Canada Distribution: na Date: Mon, 18 Feb 91 15:23:47 GMT I'll probably burn in hell for this one, but why not ... 1 remove globbing from the shell. 2 put in a library. 3 current shell programs would need to be updated (first thing they do is call glob(argc, argv), returning argc and argv updated (globbed) 4 New programs that want to glob can call glob. 5 New the rename command (rename *.pas *.p) could ... look at argc and argv, and copy them somewhere. modify argv and argc to just glob for files with .pas and then build a cmd line and exec mv. Fire away...