]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: better support double quote
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 12 Oct 2010 07:13:16 +0000 (15:13 +0800)
committerEric Blake <eblake@redhat.com>
Wed, 13 Oct 2010 13:52:32 +0000 (07:52 -0600)
commitad2f1b609325abffae743e4b3a5b755294e07e41
tree581fe81cc9a75d59c6860b8a7ddfe3c062ea2bbd
parent94f232bb9b90a99e379649487b5175ada6e8dcdb
virsh: better support double quote

In origin code, double quote is only allowed at the begin or end
"complicated argument"
--some_opt="complicated string"  (we split this argument into 2 parts,
option and data, the data is "complicated string").

This patch makes it allow double quote at any position of
an argument:
complicated" argument"
complicated" "argument
--"some opt=complicated string"

This patch is also needed for the following patches,
the following patches will not split option argument into 2 parts,
so we have to allow double quote at any position of an argument.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
AUTHORS
tools/virsh.c