[parted-devel] [PATCH v2] parted/ui: Count empty quoted strings as words in multi_word mode

Phil Susi psusi at ubuntu.com
Fri Sep 1 19:25:52 UTC 2017


On 8/11/2017 10:55 AM, Sebastian Parschauer wrote:
> The quoting is required as in interactive mode the command
> "mkpart " (with a trailing space) would set the partition name to
> an empty string already.

I'm not sure I understand what the problem was, but it seems like it
should be fixable without resorting to quoting quotes.

Do you mean that if you literally type ( with the quotes ) "mkpart ",
then the space between the mkpart and end quote is considered an empty
string because it is somewhere within quotes?  It doesn't seem like it
should be too hard to only consider quotes with nothing between them to
be an empty string.





More information about the parted-devel mailing list