Skip to content

rg man page miscodes interior hyphens in long option names as unicode hyphen #3140

@hmelman

Description

@hmelman

Please tick this box to confirm you have reviewed the above.

  • I have a different issue.

What version of ripgrep are you using?

ripgrep 14.1.1

How did you install ripgrep?

homebrew

What operating system are you using ripgrep on?

macOS 15.6.1

Describe your bug.

I believe rg's man page miscodes hyphens within option names. Using Gnu man on mac the rg.1 man page shows switches as --case‐sensitive and --files‐without‐match where the leading hyphens are properly Ascii HYPHEN-MINUS #x2d but the interior ones are Unicode HYPHEN #x2010 which makes it difficult to search for the option name. (I think/hope this came through properly on GitHub).

What are the steps to reproduce the behavior?

$ gman rg

What is the actual behavior?

       --pre‐glob=GLOB
           This  flag works in conjunction with the --pre flag. Namely, when one or more --pre‐glob flags are given, then only files that match the given set of globs will be handed to the command specified
           by the --pre flag. Any non‐matching files will be searched without using the preprocessor command.

What is the expected behavior?

hyphen in switch names should be ascii hyphen-minus as you would type them so they can be cut and pasted to a command line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug.rollupA PR that has been merged with many others in a rollup.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions