On Thu, Jun 12, 2008 at 09:09:52PM -0700, Darren Reed wrote: > Garrett D'Amore wrote: > ... > >And, maybe what we need to do is provide structured 'access' via some > >kind of helper commands (or those -o switches that we've talked > >about). Yeah, it might be another fork/exec combination compared to > >parsing it natively with eval, but I suspect the benefits of > >structured access (and reduced bugs!) make up for the minor > >performance difference. (And if performance is an issue, then maybe > >shell really is the wrong tool!) > > Hmm, are you suggesting that there should be an output mode that is complex, > such as XML, and that we feed said XML into something else, whereupon we > describe how we want the XML decoded and then presented as output?
No, Garret is suggesting that scripts get one item at a time from dladm, incurring many more fork()/exec()s, but otherwise not too shabby.
