diff options
author | Matthew Booth <mbooth@redhat.com> | 2009-09-11 09:27:57 +0100 |
---|---|---|
committer | Matthew Booth <mbooth@redhat.com> | 2009-09-14 13:59:01 +0100 |
commit | 22cee80bc2f631703bf417a54ef4e0f0837e921a (patch) | |
tree | fd9be63f3951303c5d6f22ab9651f0d2598dfda7 /python/t/050-lvcreate.py | |
parent | f8eb7a18f859fc778d06b9c3f0cafedbeba1e47f (diff) | |
download | libguestfs-22cee80bc2f631703bf417a54ef4e0f0837e921a.tar.gz libguestfs-22cee80bc2f631703bf417a54ef4e0f0837e921a.tar.xz libguestfs-22cee80bc2f631703bf417a54ef4e0f0837e921a.zip |
guestfish: Enable grouping in string lists
This change adds the ability to group entries in a string list with single
quotes. So the string:
"'foo bar'"
becomes 1 token rather than 2. Consequently single quotes must now be escaped:
"\'"
resolves to a literal single quote.
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'
That last syntax can be used if an empty argument is still desired. Whitespace
is now also defined to include tabs.
parse_string_list can also now fail if it contains an unmatched open quote.
Diffstat (limited to 'python/t/050-lvcreate.py')
0 files changed, 0 insertions, 0 deletions