mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
- Simplify and fix lesspipe.sh handling (add missing argument, and assume it always exists) - Cleanup and simplify the port PR: 221206 Approved by: maintainer timeout (mich, 2 weeks)
11 lines
398 B
C
11 lines
398 B
C
--- lazyread.c.orig 2003-02-02 13:28:15 UTC
|
|
+++ lazyread.c
|
|
@@ -377,7 +377,7 @@ char qfilename[BUFMAX]; /* quoted filena
|
|
|
|
printf("Loading..\n");
|
|
/* $LESSOPEN will look like: |/usr/bin/lesspipe.sh %s */
|
|
- lesspipe = getenv("LESSOPEN");
|
|
+ lesspipe = "|/usr/bin/lesspipe.sh %s";
|
|
if (lesspipe) {
|
|
/* strip off the leading | */
|
|
if ((c = strchr(lesspipe, '|'))) {
|