|
|
003ee8 |
From fd311a9367ec342b7d1fa5265f4d2167a29de30d Mon Sep 17 00:00:00 2001
|
|
|
003ee8 |
From: "Brian C. Lane" <bcl@redhat.com>
|
|
|
003ee8 |
Date: Fri, 6 Nov 2015 08:56:45 -0800
|
|
|
003ee8 |
Subject: [PATCH 40/40] doc: Add information about quoting
|
|
|
003ee8 |
|
|
|
003ee8 |
Some shells (bash) will strip off the " so it needs to be
|
|
|
003ee8 |
wrapped in '' to prevent it. eg.
|
|
|
003ee8 |
|
|
|
003ee8 |
parted -s ./disk.img mkpart '"EFI System Partition"' 1M 500M
|
|
|
003ee8 |
|
|
|
003ee8 |
(cherry picked from commit 8d5e7329a6984614ac9951f376bc77ea7f822ca3)
|
|
|
003ee8 |
---
|
|
|
003ee8 |
doc/C/parted.8 | 4 +++-
|
|
|
003ee8 |
doc/parted.texi | 4 +++-
|
|
|
003ee8 |
2 files changed, 6 insertions(+), 2 deletions(-)
|
|
|
003ee8 |
|
|
|
003ee8 |
diff --git a/doc/C/parted.8 b/doc/C/parted.8
|
|
|
003ee8 |
index 41baa1a..eb7cd98 100644
|
|
|
003ee8 |
--- a/doc/C/parted.8
|
|
|
003ee8 |
+++ b/doc/C/parted.8
|
|
|
003ee8 |
@@ -82,7 +82,9 @@ dvh partition tables, it should be one of "primary", "logical", or "extended".
|
|
|
003ee8 |
.TP
|
|
|
003ee8 |
.B name \fIpartition\fP \fIname\fP
|
|
|
003ee8 |
Set the name of \fIpartition\fP to \fIname\fP. This option works only on Mac,
|
|
|
003ee8 |
-PC98, and GPT disklabels. The name can be placed in quotes, if necessary.
|
|
|
003ee8 |
+PC98, and GPT disklabels. The name can be placed in double quotes, if necessary.
|
|
|
003ee8 |
+And depending on the shell may need to also be wrapped in single quotes so that
|
|
|
003ee8 |
+the shell doesn't strip off the double quotes.
|
|
|
003ee8 |
.TP
|
|
|
003ee8 |
.B print
|
|
|
003ee8 |
Display the partition table.
|
|
|
003ee8 |
diff --git a/doc/parted.texi b/doc/parted.texi
|
|
|
003ee8 |
index c727fb2..1b9c084 100644
|
|
|
003ee8 |
--- a/doc/parted.texi
|
|
|
003ee8 |
+++ b/doc/parted.texi
|
|
|
003ee8 |
@@ -628,7 +628,9 @@ $ @kbd{mkfs.vfat /dev/sdX2}
|
|
|
003ee8 |
@deffn Command name @var{number} @var{name}
|
|
|
003ee8 |
|
|
|
003ee8 |
Sets the name for the partition @var{number} (GPT, Mac, MIPS and PC98 only).
|
|
|
003ee8 |
-The name can be placed in quotes.
|
|
|
003ee8 |
+The name can be placed in quotes. And depending on the shell may need to also
|
|
|
003ee8 |
+be wrapped in single quotes so that the shell doesn't strip off the double
|
|
|
003ee8 |
+quotes.
|
|
|
003ee8 |
|
|
|
003ee8 |
Example:
|
|
|
003ee8 |
|
|
|
003ee8 |
--
|
|
|
003ee8 |
2.5.5
|
|
|
003ee8 |
|