mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #3509: fix not portable invocation of man.
mc called "man -l" to display man page files, which is not correct on OS X, FreeBSD, etc, so patch out the -l to make it work. Original patch: https://svnweb.freebsd.org/ports/head/misc/mc/files/patch-misc__ext.d__text.sh.in?annotate=382039&pathrev=382039 Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
4d92e9191e
commit
7dc7eb3d14
@ -48,7 +48,7 @@ do_view_action() {
|
||||
cat "${MC_EXT_FILENAME}"
|
||||
;;
|
||||
*)
|
||||
MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat -l "${MC_EXT_FILENAME}"
|
||||
MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat "${MC_EXT_FILENAME}"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
@ -69,7 +69,7 @@ do_view_action() {
|
||||
*)
|
||||
# "man" takes care of uncompressing.
|
||||
# This way the stdin is left intact so the correct width is used.
|
||||
MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat -l "${MC_EXT_FILENAME}"
|
||||
MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat "${MC_EXT_FILENAME}"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user