Quoth Nicolas Williams on Wed, Jun 04, 2008 at 02:41:25PM -0500: > If I understand your proposal you're suggestion one svcprop invocation > to find how many values for a property, and then a per-value invocation > of svcprop. Sounds rather wasteful (lots of fork/execs), though that > too will do -- but think about how you use that from a shell program and > compare to my usage above.
No, sorry I wasn't clear enough. I'm proposing that svcprop print the values in such a way that you can do for val in `svcprop ...`; do ... done or set -- `svcprop ...` # use positional parameters Though I suspect that there should also be a way for a script to obtain the number of values and abort if there are too many. Though that could be defeated by an intervening modification. David