]> git.pld-linux.org Git - packages/parted.git/blame - 0040-doc-Add-information-about-quoting.patch
- release 6 (by relup.sh)
[packages/parted.git] / 0040-doc-Add-information-about-quoting.patch
CommitLineData
c886eb9d
AM
1From fd311a9367ec342b7d1fa5265f4d2167a29de30d Mon Sep 17 00:00:00 2001
2From: "Brian C. Lane" <bcl@redhat.com>
3Date: Fri, 6 Nov 2015 08:56:45 -0800
4Subject: [PATCH 40/40] doc: Add information about quoting
5
6Some shells (bash) will strip off the " so it needs to be
7wrapped in '' to prevent it. eg.
8
9parted -s ./disk.img mkpart '"EFI System Partition"' 1M 500M
10
11(cherry picked from commit 8d5e7329a6984614ac9951f376bc77ea7f822ca3)
12---
13 doc/C/parted.8 | 4 +++-
14 doc/parted.texi | 4 +++-
15 2 files changed, 6 insertions(+), 2 deletions(-)
16
17diff --git a/doc/C/parted.8 b/doc/C/parted.8
18index 41baa1a..eb7cd98 100644
19--- a/doc/C/parted.8
20+++ b/doc/C/parted.8
21@@ -82,7 +82,9 @@ dvh partition tables, it should be one of "primary", "logical", or "extended".
22 .TP
23 .B name \fIpartition\fP \fIname\fP
24 Set the name of \fIpartition\fP to \fIname\fP. This option works only on Mac,
25-PC98, and GPT disklabels. The name can be placed in quotes, if necessary.
26+PC98, and GPT disklabels. The name can be placed in double quotes, if necessary.
27+And depending on the shell may need to also be wrapped in single quotes so that
28+the shell doesn't strip off the double quotes.
29 .TP
30 .B print
31 Display the partition table.
32diff --git a/doc/parted.texi b/doc/parted.texi
33index c727fb2..1b9c084 100644
34--- a/doc/parted.texi
35+++ b/doc/parted.texi
36@@ -628,7 +628,9 @@ $ @kbd{mkfs.vfat /dev/sdX2}
37 @deffn Command name @var{number} @var{name}
38
39 Sets the name for the partition @var{number} (GPT, Mac, MIPS and PC98 only).
40-The name can be placed in quotes.
41+The name can be placed in quotes. And depending on the shell may need to also
42+be wrapped in single quotes so that the shell doesn't strip off the double
43+quotes.
44
45 Example:
46
47--
482.5.5
49
This page took 0.235737 seconds and 4 git commands to generate.