Article 6HG5Q Some Dashes/Hyphens in rsync's Manual Page on -current Are Different

Some Dashes/Hyphens in rsync's Manual Page on -current Are Different

by
TommyC7
from LinuxQuestions.org on (#6HG5Q)
Hello folks,

Today when searching for one of rsync's long options that I know for a fact it has, my pager (less) said it wasn't able to find the pattern I fed it, which was just "--compress-choice".

It was however, able to find "--compress" when I noticed just beneath it, the "--compress-choice" option was there but the hyphen/dash after the last 's' in "compress" wasn't the same as the first two hyphens/dashes in the long option.

I fired up a clean -current VM to see if it happened to be some personal changes I made on my own laptop or if it had been my terminal but it wasn't and the clean -current VM had the same issue.

A quick glance through the "rsync.1" file in the source tarball shows the dashes/hyphens that can get searched are escaped. Here's a small snippet:
Quote:
.IP
Rsync supports multiple compression methods and will choose one
for you unless you force the choice using the \fB\-\-compresschoice\fP
(\fB\-\-zc\fP) option.
.IP
With that said:

1. Does anyone else have this issue on -current specifically with rsync's man page?

There may be others but I can only confirm this issue with rsync on my end.

2. What regular expression could properly and inconsequentially substitute all cases of the un-escaped '-' with the escaped variant?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments