> >Consider the output for show-linkprop -c. There are quotes around all
> >values. While this provides consistency among the format of all possible
> >values of all possible properties (as some values may contain spaces),
> >it's not obvious to parse. At least not for me. How do I easily strip
> >the " characters from around a value in a shell script?
> >
> >The context is that I use the same syntax for "show-iptun -p", and I have
> >a need to get access to all of the IP tunnel names. The output of dladm
> >show-iptun -p, for example, is
>
> Given that -p is being used for parseable output here, I'd like to
> suggest that ipmpstat be changed and the roles of -p/-P reversed
> so that -p has the same behaviour for both.
Sorry, I'm afraid of you've lost me. However:
1. ipmpstat -p outputs probe information. We could change that
to -P, but that would create greater usability issues because
the other four output modes are -a -i -g and -t (address
interface, group, and target), all use lowercase. We could
change them all to be uppercase, but that would mean every
use of ipmpstat would need an extra keypress (the shift key)
which seems obnoxious.
2. Stripping the double-quotes is trivial. It's one `eval'.
--
meem