Path: utzoo!attcan!uunet!husc6!ogccse!blake!uw-beaver!rice!sun-spots-request From: Kemp.Catwalk@dockmaster.arpa Newsgroups: comp.sys.sun Subject: Re: find Message-ID: <881216190402.381521@DOCKMASTER.ARPA> Date: 24 Dec 88 20:10:57 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 99 Approved: Sun-Spots@rice.edu Original-Date: Fri, 16 Dec 88 14:04 EST X-Sun-Spots-Digest: Volume 7, Issue 75, message 2 of 11 > [[ . . . So reread the manual page and then try > "find . -name filename -print". . . . Oh, and by the way, > the syntax to do this under VMS is MUCH uglier. --wnl ]] Bill, You didn't put a smiley after that last crack, so here goes: The VMS syntax is, of course: $ dir [...]filename This raises the issue of where filename expansion should take place. I can think of three problems with having filename expansion done by the shell: 1) It imposes an arbitrary limit on the number of files a command can operate on. This isn't too bad because as disks and memory get larger people can keep hacking the shell to raise the limit, but it is philosophically troublesome to have any such arbitrary restriction. 2) It causes the shell to expand the whole mess before doing *any* real work, causing delays when there are a large number of files. I would like instant response when I type 'more *.c'. Again, this isn't much of a problem in practice. 3) The REAL problem: it destroys the basic semantic difference between command line arguments and files. The unix approach of having the shell do the expansion (of a command with no options, for simplicity): for (i=1; i