summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2015-11-06 08:56:45 -0800
committerBrian C. Lane <bcl@redhat.com>2016-12-22 13:57:52 -0800
commit35b742afe520cac7975f09224dd3489601b4c10f (patch)
tree287ae1f0f3f921a3b47135cbd712fab0b9afefb6 /doc
parentf2ace5e95742cb20fdce8b551953a1b89c28135f (diff)
downloadparted-35b742afe520cac7975f09224dd3489601b4c10f.tar.gz
doc: Add information about quoting
Some shells (bash) will strip off the " so it needs to be wrapped in '' to prevent it. eg. parted -s ./disk.img mkpart '"EFI System Partition"' 1M 500M
Diffstat (limited to 'doc')
-rw-r--r--doc/C/parted.84
-rw-r--r--doc/parted.texi4
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/C/parted.8 b/doc/C/parted.8
index 41baa1a..eb7cd98 100644
--- a/doc/C/parted.8
+++ b/doc/C/parted.8
@@ -82,7 +82,9 @@ dvh partition tables, it should be one of "primary", "logical", or "extended".
.TP
.B name \fIpartition\fP \fIname\fP
Set the name of \fIpartition\fP to \fIname\fP. This option works only on Mac,
-PC98, and GPT disklabels. The name can be placed in quotes, if necessary.
+PC98, and GPT disklabels. The name can be placed in double quotes, if necessary.
+And depending on the shell may need to also be wrapped in single quotes so that
+the shell doesn't strip off the double quotes.
.TP
.B print
Display the partition table.
diff --git a/doc/parted.texi b/doc/parted.texi
index c55d343..ac23ef6 100644
--- a/doc/parted.texi
+++ b/doc/parted.texi
@@ -654,7 +654,9 @@ $ @kbd{mkfs.vfat /dev/sdX2}
@deffn Command name @var{number} @var{name}
Sets the name for the partition @var{number} (GPT, Mac, MIPS and PC98 only).
-The name can be placed in quotes.
+The name can be placed in quotes. And depending on the shell may need to also
+be wrapped in single quotes so that the shell doesn't strip off the double
+quotes.
Example: