Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.os.misc Subject: Re: shell with da Silva lining Message-ID: Date: 16 Apr 91 20:34:51 GMT References: <1639@sheol.UUCP> <1685@sheol.UUCP> <50837@nigel.ee.udel.edu> Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 25 In article <50837@nigel.ee.udel.edu> new@ee.udel.edu (Darren New) writes: > >> peter@ficc.ferranti.com (Peter da Silva) > >> You need to be able to specify expansion into multiple args (with glob) > >> and expansion into a single arg (as in the example above). > The real problem is that you are doing this under UNIX, where stdin and > stdio are unstructured streams of bytes instead of something more > sophisticated. This has nothing to do with UNIX. This is purely a matter of syntax: whether the syntax: '[...]' and the syntax: [...] should both expand into a single argument or whether the latter expands into multiple arguments. 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? -- Peter da Silva. `-_-' peter@ferranti.com +1 713 274 5180. 'U` "Have you hugged your wolf today?"