Blame SOURCES/0040-doc-Add-information-about-quoting.patch

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