That works; I had the following which used to work
function get_option_list
{
# get the options for a choice
local option=$1;
# assume options are specified as [--option1 | --option2 | ...]
OPTIONS=$(${VIRSH} --help ${option} 2> /dev/null | grep '|' | sed -e
's/.*\[\(.*\)\]/\1/g;s/|//g')
}
which would do completion on the arguments for a command. However, it's now
gone up the spout with the new release
Thanks
Geoff
2009/10/6 Chuck Short <email address hidden>
> What if you just do the following virsh --help?
>
> Regards
> chuck
>
> ** Changed in: libvirt (Ubuntu)
> Status: New => Incomplete
>
> --
> virsh --help {option} no longer works in shell
> https://bugs.launchpad.net/bugs/400404
> You received this bug notification because you are a direct subscriber
> of the bug.
>
That works; I had the following which used to work
function get_option_list $(${VIRSH} --help ${option} 2> /dev/null | grep '|' | sed -e \(.*\)\ ]/\1/g; s/|//g' )
{
# get the options for a choice
local option=$1;
# assume options are specified as [--option1 | --option2 | ...]
OPTIONS=
's/.*\[
}
which would do completion on the arguments for a command. However, it's now
gone up the spout with the new release
Thanks
Geoff
2009/10/6 Chuck Short <email address hidden>
> What if you just do the following virsh --help? /bugs.launchpad .net/bugs/ 400404
>
> Regards
> chuck
>
> ** Changed in: libvirt (Ubuntu)
> Status: New => Incomplete
>
> --
> virsh --help {option} no longer works in shell
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
-- ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~
~~~~~~~
Geoff Low
187 Radstock Way
Merstham
Surrey
UK
RH1 3NQ
Ph: 01737817798 ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~
Mb: 07817754159
~~~~~~~