Skip to content

Commit

Permalink
Fix dashes in man page
Browse files Browse the repository at this point in the history
`-` in roff source doesn't always produce ASCII dash, producing Unicode
dashes (`e2 80 90`) on some terminals.

Copy-pasting the code from the man page to the terminal, would not
produce the correct characters syntax errors.

For instance, `find <Unicode dash>type d`.

Kept places where a dash (opp. a literal ASCII hyphen) was semantically
correct.
  • Loading branch information
h3xx authored and Paul Dreik committed Apr 6, 2024
1 parent 88fb671 commit 343a271
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rdfind.1
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ some preprocessor which sorts the file names in desired order and then
run the program using xargs. See examples below for how to use find
and xargs in conjunction with rdfind.

To include files or directories that have names starting with -, use
rdfind ./- to not confuse them with options.
To include files or directories that have names starting with \-, use
rdfind ./\- to not confuse them with options.

.SH RANKING
Given two or more equal files, the one with the highest rank is
Expand All @@ -50,7 +50,7 @@ If A was found at a directory depth lower than B, A is higher ranked
if A and B are found during scanning of the same input argument and share
the same directory depth, the one that ranks highest depends on if
deterministic operation is enabled. This is on by default, see option
\fB-deterministic\fR). If enabled, which one ranks highest is
\fB\-deterministic\fR). If enabled, which one ranks highest is
unspecified but deterministic. If disabled, the one that was reported
first from the file system is highest ranked.

Expand All @@ -59,7 +59,7 @@ Searching options etc:
.TP
.BR \-ignoreempty " " \fItrue\fR|\fIfalse\fR
Ignore empty files. Setting this to true (the default) is equivalent to
-minsize 1, false is equivalent to -minsize 0.
\-minsize 1, false is equivalent to \-minsize 0.
.TP
.BR \-minsize " "\fIN\fR
Ignores files with less than N bytes. Default is 1, meaning empty files
Expand Down Expand Up @@ -96,7 +96,7 @@ Replace duplicate files with hard links. Default is false.
.BR \-makeresultsfile " " \fItrue\fR|\fIfalse\fR
Make a results file in the current directory. Default is true. If the
file exists, it is overwritten. This does not affect whether items are
deleted. See -dryrun for how to disable deletions.
deleted. See \-dryrun for how to disable deletions.
.TP
.BR \-outputname " " \fIname\fR
Make the results file name to be "name" instead of the default
Expand Down Expand Up @@ -127,10 +127,10 @@ Search for duplicate files in the home directory and a backup directory:
.B rdfind ~ /mnt/backup
.TP
Delete duplicates in a backup directory:
.B rdfind -deleteduplicates true /mnt/backup
.B rdfind \-deleteduplicates true /mnt/backup
.TP
Search for duplicate files in directories called foo:
.B find . -type d -name foo -print0 |xargs -0 rdfind
.B find . \-type d \-name foo \-print0 |xargs \-0 rdfind
.SH FILES
.I results.txt
(the default name is results.txt and can be changed with option outputname,
Expand Down

0 comments on commit 343a271

Please sign in to comment.