[PATCH] Properly dispaying log files from /var/log


This patch prevent displaying log files (like log.1) from /var/log directory as a man pages. It's just a workaround, I'm working on the better solutions but it will take me some more time.
Best Regards
Marcin Garski
--- mc.ext.in-orig	2005-01-09 16:07:10.000000000 +0100
+++ mc.ext.in	2005-01-09 16:09:40.000000000 +0100
@@ -150,7 +150,7 @@
 	Open=nroff @MAN_FLAGS@ @MANDOC@ %f | %var{PAGER:more}
-	View=%view{ascii,nroff} nroff @MAN_FLAGS@ @MANDOC@ %f
+	View=%view{ascii,nroff} case %d in /var/log*) cat %f ;; *) nroff @MAN_FLAGS@ @MANDOC@ %f ;; esac
 # Troff with me macros.
 # Exception - "read.me" is not a nroff file.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]