| 1 |
diff -up man-1.6f/src/man.c.pom man-1.6f/src/man.c
|
| 2 |
--- man-1.6f/src/man.c.pom 2008-06-02 13:52:45.000000000 +0200
|
| 3 |
+++ man-1.6f/src/man.c 2008-06-02 13:55:08.000000000 +0200
|
| 4 |
@@ -923,8 +923,11 @@ display_man_file(const char *path, const
|
| 5 |
if (do_troff)
|
| 6 |
command = my_xsprintf ("(cd \"%S\" && %s)", path, roff_command);
|
| 7 |
else
|
| 8 |
- command = my_xsprintf ("(cd \"%S\" && %s | %s)", path,
|
| 9 |
+ if (isatty(1))
|
| 10 |
+ command = my_xsprintf ("(cd \"%S\" && %s | %s)", path,
|
| 11 |
roff_command, pager);
|
| 12 |
+ else
|
| 13 |
+ command = my_xsprintf ("(cd \"%S\" && %s)", path, roff_command);
|
| 14 |
|
| 15 |
return !do_system_command (command, 0);
|
| 16 |
}
|