Skip to content

Rendered man page incorrectly displays command line switches #159

@jheino3

Description

@jheino3

First of all, my locale is set to "en_US.UTF-8" if that makes a difference.

man jpegoptim displays command line switches as Unicode HYPHEN rather than HYPHEN-MINUS. When copy-pasting a command from the rendered man page, it creates cryptic errors such as this:

Command:
jpegoptim ‐‐dest=./p file.jpg

Resulting error:
jpegoptim: file not found: ‐‐dest=./p

Looking at the documentation for "man", it appears that every '-' in jpegoptim.1 should be replaced with '\-'

This would would render the character '-' as HYPHEN-MINUS, allow copy-pasting of options without error. I'm kind of out of my element here, but I believe this is the problem and solution.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions