Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!zaphod.mps.ohio-state.edu!wuarchive!udel!ee.udel.edu From: new@ee.udel.edu (Darren New) Newsgroups: comp.os.misc Subject: Re: shell with da Silva lining Message-ID: <50982@nigel.ee.udel.edu> Date: 16 Apr 91 22:19:22 GMT References: <1685@sheol.UUCP> <50837@nigel.ee.udel.edu> Sender: usenet@ee.udel.edu Organization: University of Delaware Lines: 19 Nntp-Posting-Host: estelle.ee.udel.edu In article peter@ficc.ferranti.com (Peter da Silva) writes: >Actually passing an argv back from glob is not the problem: >I can print a null-separated string if I want. You still have to ask the >question: what do you do with it when you get it? So why not expand glob slightly as follows: [glob -1 *.c] -- returns all *.c files as one argument [glob *.c] -- returns all *.c files, broken up Then 'glob' handles either breaking up the file names or not. You could do things like [blah | tr '\012' ' '] to get similar effects to the -1 parameter on glob for other programs. -- --- Darren New --- Grad Student --- CIS --- Univ. of Delaware --- ----- Network Protocols, Graphics, Programming Languages, FDTs ----- +=+=+ My time is very valuable, but unfortunately only to me +=+=+ +=+ Nails work better than screws, when both are driven with screwdrivers +=+