[Libguestfs] [FOR REVIEW ONLY] guestfish: Enable grouping in string lists

Matthew Booth mbooth at redhat.com
Fri Sep 11 10:56:14 UTC 2009


On 11/09/09 11:36, Richard W.M. Jones wrote:
>> Incidentally, this change also alters another, probably unintentional behaviour
>> of the previous implementation, in that tokens are separated by any amount of
>> whitespace rather than a single whitespace character. I.e.:
>>    "a  b"
>> resolves to:
>>    'a' 'b'
>> rather than:
>>    'a' '' 'b'
>> Whitespace is now also defined to include tabs.
>
> This behaviour was intentional, although not documented.  How can we
> define a list that contains an empty string now?  Does "a '' b" work?

Yes, it does.

Matt
-- 
Matthew Booth, RHCA, RHCSS
Red Hat Engineering, Virtualisation Team

M:       +44 (0)7977 267231
GPG ID:  D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490




More information about the Libguestfs mailing list