]>
Commit | Line | Data |
---|---|---|
c886eb9d AM |
1 | From fd311a9367ec342b7d1fa5265f4d2167a29de30d Mon Sep 17 00:00:00 2001 |
2 | From: "Brian C. Lane" <bcl@redhat.com> | |
3 | Date: Fri, 6 Nov 2015 08:56:45 -0800 | |
4 | Subject: [PATCH 40/40] doc: Add information about quoting | |
5 | ||
6 | Some shells (bash) will strip off the " so it needs to be | |
7 | wrapped in '' to prevent it. eg. | |
8 | ||
9 | parted -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 | ||
17 | diff --git a/doc/C/parted.8 b/doc/C/parted.8 | |
18 | index 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. | |
32 | diff --git a/doc/parted.texi b/doc/parted.texi | |
33 | index 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 | -- | |
48 | 2.5.5 | |
49 |