On 01.05.2017 20:54, Brian C. Lane wrote: > On Fri, Apr 21, 2017 at 09:02:41AM -0400, Phil Susi wrote: >> On 4/21/2017 7:34 AM, Sebastian Parschauer wrote: >>> Thanks, but parted only allows to leave it empty in interactive mode. >>> The name is a required argument in script mode. >> >> This appears to be a bug. Or at least the bug is that parted does not >> understand quotes. My first thought was to simply pass the name >> argument as "" for the empty string, but it does not recognize quotes at >> all. Trying to use quotes to give a name with a space in it fails. > > I agree that this looks like a bug. FWIW I updated the docs for this > when someone ran into problems passing spaces: > > parted -s ./disk.img mkpart '"EFI System Partition"' 1M 500M > > but it doesn't work with an empty string. > > I don't think we need to go to great lengths to change this, just fix > the parsing so you can pass in an empty quoted string.
This is what I've done. Thanks for the hint! Please see my e-mail [PATCH] parted/ui: Count empty strings as words in multi_word mode I hope that we can include this soon. Cheers, Sebastian

