Bug#863253: export(1posix): in "-p", the "-" is a minus sign instead of a hyphen-minus

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#863253: export(1posix): in "-p", the "-" is a minus sign instead of a hyphen-minus

Vincent Lefevre-10
Package: manpages-posix
Version: 2013a-2
Severity: normal

When I type "man export", I get:

       export −p

and in the examples:

           export −p > temp-file

Here, the "-" in "-p" is a U+2212 MINUS SIGN character instead of
U+002D HYPHEN-MINUS. This breaks the examples when copy-pasted.

-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/12 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

manpages-posix depends on no packages.

Versions of packages manpages-posix recommends:
ii  manpages  4.10-2

Versions of packages manpages-posix suggests:
ii  man-db [man-browser]  2.7.6.1-2

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#863253: same issue in other manpages too

Salvo Tomaselli-3
tags 863253 patch
thanks

I have encountered the same issue in set.1posix.gz, and basically it
seems that all the manpages in the package suffer this problem, making
them rather inaccurate.

Probably whoever edited them used some "smart" editor that did this…

Basically, I had to run this script to fix it.

for i in `find`; do sed -i -e 's/\\(mi/-/g' $i; done

The patch that came out is 1MiB so I compressed it.

--
Salvo Tomaselli

"Io non mi sento obbligato a credere che lo stesso Dio che ci ha dotato di
senso, ragione ed intelletto intendesse che noi ne facessimo a meno."
                -- Galileo Galilei

http://ltworf.github.io/ltworf/

fixhyphen.patch.bz2 (243K) Download Attachment