Re: [libvirt] [PATCH 1/8] virsh: better support double quote

2010-10-12 Thread Eric Blake
On 10/12/2010 10:50 AM, Eric Blake wrote: Hmm, one thing you _don't_ recognize is: -"-"option as an option. In the shell, quotes are stripped before arguments are recognized as a particular token. I think that's pretty easy to support - delay VSH_TK_OPTION checking until after we've stripped qu

Re: [libvirt] [PATCH 1/8] virsh: better support double quote

2010-10-12 Thread Eric Blake
On 10/12/2010 01:13 AM, Lai Jiangshan wrote: 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

[libvirt] [PATCH 1/8] virsh: better support double quote

2010-10-12 Thread Lai Jiangshan
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" ar