[packages/lesspipe] depending on the environment, less might be parent or grandparent (via SHELL) of lesspipe.sh, try to

gotar gotar at pld-linux.org
Sat Jul 2 14:44:43 CEST 2016


commit dfd64c2aa8b11bbaffbfe84d9846a6d9e02db6d8
Author: Tomasz Pala <gotar at pld-linux.org>
Date:   Sat Jul 2 14:42:44 2016 +0200

    depending on the environment, less might be parent or grandparent
    (via SHELL) of lesspipe.sh, try to handle both; bump ver. to 1.56

 lesspipe.sh   | 2 +-
 lesspipe.spec | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lesspipe.spec b/lesspipe.spec
index 8bcb5df..23fd1f5 100644
--- a/lesspipe.spec
+++ b/lesspipe.spec
@@ -5,8 +5,8 @@
 Summary:	Input preprocessor for less
 Summary(pl.UTF-8):	Preprocesor wejścia dla narzędzia less
 Name:		lesspipe
-Version:	1.55
-Release:	4
+Version:	1.56
+Release:	1
 License:	GPL v2
 Group:		Applications/Text
 Source0:	%{name}.sh
diff --git a/lesspipe.sh b/lesspipe.sh
index 3e63633..48705d5 100755
--- a/lesspipe.sh
+++ b/lesspipe.sh
@@ -148,7 +148,7 @@ lesspipe() {
 			output=ansi;;
 		esac
 		run-mailcap "$1" || {
-			echo "$LESS" | grep -qi r || ps -p $(ps -p $PPID -oppid=) -oargs= | grep -qiw -- -r && highlight --$output --style=darkblue "$1";
+			echo "$LESS" | grep -qi r || ps -p $PPID,$(ps -p $PPID -oppid=) -oargs= | grep -qiw -- -r && highlight --$output --style=darkblue "$1";
 		}
 	# Check to see if binary, if so -- view with 'strings'
 	# FILE=$(file -L "$1")
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lesspipe.git/commitdiff/dfd64c2aa8b11bbaffbfe84d9846a6d9e02db6d8



More information about the pld-cvs-commit mailing list