* [PATCH] man1/*: ffix, change '-' to '\-' for options
@ 2020-07-01 22:05 Bjarni Ingi Gislason
2020-07-02 10:25 ` Michael Kerrisk (man-pages)
0 siblings, 1 reply; 2+ messages in thread
From: Bjarni Ingi Gislason @ 2020-07-01 22:05 UTC (permalink / raw)
To: mtk.manpages; +Cc: linux-man
Change '-' to '\-' for the prefix of names to indicate an option.
Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
man1/locale.1 | 8 ++++----
man1/memusage.1 | 2 +-
man1/memusagestat.1 | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/man1/locale.1 b/man1/locale.1
index 587795728..5506354bd 100644
--- a/man1/locale.1
+++ b/man1/locale.1
@@ -58,7 +58,7 @@ the behavior is as follows:
.BR \-a ", " \-\-all\-locales
Display a list of all available locales.
The
-.B -v
+.B \-v
option causes the
.B LC_IDENTIFICATION
metadata about each locale to be included in the output.
@@ -66,7 +66,7 @@ metadata about each locale to be included in the output.
.BR \-m ", " \-\-charmaps
Display the available charmaps (character set description files).
To display the current character set for the locale, use
-\fBlocale -c charmap\fR.
+\fBlocale \-c charmap\fR.
.PP
The
.B locale
@@ -195,8 +195,8 @@ in the shell profile file so that the custom locale will be used in the
subsequent user sessions:
.PP
.EX
-$ \fBmkdir -p $HOME/.locale\fP
-$ \fBI18NPATH=./wrk/ localedef -f UTF-8 -i fi_SE $HOME/.locale/fi_SE.UTF-8\fP
+$ \fBmkdir \-p $HOME/.locale\fP
+$ \fBI18NPATH=./wrk/ localedef \-f UTF-8 \-i fi_SE $HOME/.locale/fi_SE.UTF-8\fP
$ \fBLOCPATH=$HOME/.locale LC_ALL=fi_SE.UTF-8 date\fP
$ \fBecho "export LOCPATH=\e$HOME/.locale" >> $HOME/.bashrc\fP
$ \fBecho "export LANG=fi_SE.UTF-8" >> $HOME/.bashrc\fP
diff --git a/man1/memusage.1 b/man1/memusage.1
index 9292fb8f0..ce50e6f16 100644
--- a/man1/memusage.1
+++ b/man1/memusage.1
@@ -55,7 +55,7 @@ can also be intercepted.
can output the collected data in textual form, or it can use
.BR memusagestat (1)
(see the
-.B -p
+.B \-p
option, below)
to create a PNG file containing graphical representation
of the collected data.
diff --git a/man1/memusagestat.1 b/man1/memusagestat.1
index 411622446..a1c40cd86 100644
--- a/man1/memusagestat.1
+++ b/man1/memusagestat.1
@@ -31,7 +31,7 @@ creates a PNG file containing a graphical representation of the
memory profiling data in the file
.IR datafile ;
that file is generated via the
-.I -d
+.I \-d
(or
.IR --data )
option of
@@ -41,7 +41,7 @@ The red line in the graph shows the heap usage (allocated memory)
and the green line shows the stack usage.
The x-scale is either the number of memory-handling function calls or
(if the
-.I -t
+.I \-t
option is specified)
time.
.SH OPTIONS
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] man1/*: ffix, change '-' to '\-' for options
2020-07-01 22:05 [PATCH] man1/*: ffix, change '-' to '\-' for options Bjarni Ingi Gislason
@ 2020-07-02 10:25 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-07-02 10:25 UTC (permalink / raw)
To: Bjarni Ingi Gislason; +Cc: mtk.manpages, linux-man
On 7/2/20 12:05 AM, Bjarni Ingi Gislason wrote:
> Change '-' to '\-' for the prefix of names to indicate an option.
Patch applied. (And thanks for splitting these patches into
sections; it makes the patches smaller and therefore easier
to review).
Cheers,
Michael
> Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
> ---
> man1/locale.1 | 8 ++++----
> man1/memusage.1 | 2 +-
> man1/memusagestat.1 | 4 ++--
> 3 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/man1/locale.1 b/man1/locale.1
> index 587795728..5506354bd 100644
> --- a/man1/locale.1
> +++ b/man1/locale.1
> @@ -58,7 +58,7 @@ the behavior is as follows:
> .BR \-a ", " \-\-all\-locales
> Display a list of all available locales.
> The
> -.B -v
> +.B \-v
> option causes the
> .B LC_IDENTIFICATION
> metadata about each locale to be included in the output.
> @@ -66,7 +66,7 @@ metadata about each locale to be included in the output.
> .BR \-m ", " \-\-charmaps
> Display the available charmaps (character set description files).
> To display the current character set for the locale, use
> -\fBlocale -c charmap\fR.
> +\fBlocale \-c charmap\fR.
> .PP
> The
> .B locale
> @@ -195,8 +195,8 @@ in the shell profile file so that the custom locale will be used in the
> subsequent user sessions:
> .PP
> .EX
> -$ \fBmkdir -p $HOME/.locale\fP
> -$ \fBI18NPATH=./wrk/ localedef -f UTF-8 -i fi_SE $HOME/.locale/fi_SE.UTF-8\fP
> +$ \fBmkdir \-p $HOME/.locale\fP
> +$ \fBI18NPATH=./wrk/ localedef \-f UTF-8 \-i fi_SE $HOME/.locale/fi_SE.UTF-8\fP
> $ \fBLOCPATH=$HOME/.locale LC_ALL=fi_SE.UTF-8 date\fP
> $ \fBecho "export LOCPATH=\e$HOME/.locale" >> $HOME/.bashrc\fP
> $ \fBecho "export LANG=fi_SE.UTF-8" >> $HOME/.bashrc\fP
> diff --git a/man1/memusage.1 b/man1/memusage.1
> index 9292fb8f0..ce50e6f16 100644
> --- a/man1/memusage.1
> +++ b/man1/memusage.1
> @@ -55,7 +55,7 @@ can also be intercepted.
> can output the collected data in textual form, or it can use
> .BR memusagestat (1)
> (see the
> -.B -p
> +.B \-p
> option, below)
> to create a PNG file containing graphical representation
> of the collected data.
> diff --git a/man1/memusagestat.1 b/man1/memusagestat.1
> index 411622446..a1c40cd86 100644
> --- a/man1/memusagestat.1
> +++ b/man1/memusagestat.1
> @@ -31,7 +31,7 @@ creates a PNG file containing a graphical representation of the
> memory profiling data in the file
> .IR datafile ;
> that file is generated via the
> -.I -d
> +.I \-d
> (or
> .IR --data )
> option of
> @@ -41,7 +41,7 @@ The red line in the graph shows the heap usage (allocated memory)
> and the green line shows the stack usage.
> The x-scale is either the number of memory-handling function calls or
> (if the
> -.I -t
> +.I \-t
> option is specified)
> time.
> .SH OPTIONS
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-02 10:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-01 22:05 [PATCH] man1/*: ffix, change '-' to '\-' for options Bjarni Ingi Gislason
2020-07-02 10:25 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).