Package: debianutils
Version: 4.9.1
Severity: minor
Tags: patch

Dear Maintainer,

  Details:

Input file is tempfile.1

chk_man: Next line: execute mandoc -T lint tempfile.1

mandoc: tempfile.1:10:2: WARNING: skipping paragraph macro: PP after SH

#######

Input file is tempfile.1

Test nr. 2:

Enable and fix warnings from 'test-groff'.


Output is from: test-groff -b -e -mandoc -T utf8 -rF0 -t -w w -z

  [ "test-groff" is a developmental version of "groff" ]

Input file is ./tempfile.1

<tempfile.1>:40 (macro IR): only 1 argument, but more are expected
an-end-check:<tempfile.1>: Warning: Different number of .RS and .RE calls, 
an-RS-open=1 at end of file

####

Test nr. 25:

Change a HYPHEN-MINUS (code 0x55, 2D) to a minus (\-), if in front of a
name for an option.

44:.BI "-d, --directory " DIR
47:.BI "-m, --mode " MODE
50:.BI "-n, --name " FILE
53:The options -d, -p, and -s are ignored if this option is given.
55:.BI "-p, --prefix " STRING
58:.BI "-s, --suffix " STRING
61:.B "--help"
64:.B "--version"
80:trap "rm -f -- '$t'" EXIT
82:rm -f -- "$t"

#####

Test nr. 37:

Split lines longer than 80 characters into two or more lines.
Appropriate break points are the end of a sentence and a subordinate
clause; after punctuation marks.

tempfile.1: line 8      length 96
[\-\-prefix=STRING] [\-\-suffix=STRING] [\-\-mode=MODE] [\-\-name=FILE] 
[\-\-help] [\-\-version]


#####

Test nr. 42:

Remove superfluous quotation marks (") from the argument of a
single-font macro.

61:.B "--help"
64:.B "--version"

#####

Test nr. 48:

The name of a man page is set in bold and the section in roman (see
man-pages(7).

72:tempfile is deprecated; you should use mktemp(1) instead.

#####

Test nr. 59:

Protect a period (.) or a apostrophe (') with '\&' from becoming a
control character, if it could end up at the start of a line

80:trap "rm -f -- '$t'" EXIT

#####

  Patch:

--- tempfile.1  2019-12-07 02:13:44.000000000 +0000
+++ tempfile.1.new      2020-05-22 23:42:13.000000000 +0000
@@ -5,9 +5,9 @@ tempfile \- create a temporary file in a
 .SH SYNOPSIS
 .B tempfile
 [\-d DIR] [\-p STRING] [\-s STRING] [\-m MODE] [\-n FILE] [\-\-directory=DIR]
-[\-\-prefix=STRING] [\-\-suffix=STRING] [\-\-mode=MODE] [\-\-name=FILE] 
[\-\-help] [\-\-version]
+[\-\-prefix=STRING] [\-\-suffix=STRING] [\-\-mode=MODE]
+[\-\-name=FILE] [\-\-help] [\-\-version]
 .SH DESCRIPTION
-.PP
 .B tempfile
 creates a temporary file in a safe manner.  It uses
 .BR mkstemps (3)
@@ -37,31 +37,31 @@ is used when appropriate.
 .TP
 d)
 Finally an implementation-defined directory
-.IR (/tmp)
+.RI ( /tmp )
 may be used.
 .SH OPTIONS
 .TP
-.BI "-d, --directory " DIR
+.BI "\-d, \-\-directory " DIR
 Place the file in DIR.
 .TP
-.BI "-m, --mode " MODE
+.BI "\-m, \-\-mode " MODE
 Open the file with MODE instead of 0600.
 .TP
-.BI "-n, --name " FILE
+.BI "\-n, \-\-name " FILE
 Use FILE for the name instead of
 .BR tempnam (3) .
-The options -d, -p, and -s are ignored if this option is given.
+The options \-d, \-p, and \-s are ignored if this option is given.
 .TP
-.BI "-p, --prefix " STRING
+.BI "\-p, \-\-prefix " STRING
 Use up to five letters of STRING to generate the name.
 .TP
-.BI "-s, --suffix " STRING
+.BI "\-s, \-\-suffix " STRING
 Generate the file with STRING as the suffix.
 .TP
-.B "--help"
+.B \-\-help
 Print a usage message on standard output and exit successfully.
 .TP
-.B "--version"
+.B \-\-version
 Print version information on standard output and exit successfully.
 .SH RETURN VALUES
 An exit status of 0 means the temporary file was created successfully.
@@ -69,20 +69,20 @@ Any other exit status indicates an error
 .SH BUGS
 Exclusive creation is not guaranteed when creating files on NFS
 partitions.  tempfile cannot make temporary directories.
-tempfile is deprecated; you should use mktemp(1) instead.
+tempfile is deprecated; you should use
+.BR mktemp (1)
+instead.
 .SH EXAMPLE
-
-.RS
 .nf
 #!/bin/sh
 #[...]
 t=$(tempfile) || exit
-trap "rm -f -- '$t'" EXIT
+trap "rm \-f \-\- '$t'" EXIT
 #[...]
-rm -f -- "$t"
+rm \-f \-\- "$t"
 trap - EXIT
 exit
 .fi
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR tempnam (3),
 .BR mktemp (1)


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.14-1 (SMP w/2 CPU cores)
Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), 
LANGUAGE=is_IS.iso88591 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages debianutils depends on:
ii  libc6  2.30-8

debianutils recommends no packages.

debianutils suggests no packages.

-- no debconf information

-- 
Bjarni I. Gislason

Reply via email to