[ "$FILE" = 'troff' ] && groff -s -p -t -e -Tlatin1 -mandoc "$1" || return 1
;;
# possible sqlite3
- *.db)
+ *.db|*.sqlite3)
FILE=$(file -bL "$1" | cut -d , -f 1)
[ "$FILE" = 'SQLite 3.x database' ] && sqlite3 "$1" .dump || return 1
;;
*)
output=ansi;;
esac
- run-mailcap "$1" || {
- echo "$LESS" | grep -qi r || ps -p $PPID,$(ps -p $PPID -oppid=) -oargs= | grep -qiw -- -r && highlight --out-format=$output --style=darkblue "$1";
+ DISPLAY= run-mailcap --no-pager "$1" || {
+ echo "$LESS" | grep -qi r || ps -p $PPID,$(ps -p $PPID -oppid=) -oargs= | grep -qiw -- -r && highlight --validate-input --no-trailing-nl --out-format=$output --style=darkblue "$1";
}
# Check to see if binary, if so -- view with 'strings'
# FILE=$(file -L "$1")
Summary(pl.UTF-8): Preprocesor wejścia dla narzędzia less
Name: lesspipe
Version: 1.57
-Release: 3
+Release: 4
License: GPL v2
Group: Applications/Text
Source0: %{name}.sh
Suggests: mailcap >= 2.3
Suggests: objdump
Suggests: openssl-tools
+Conflicts: highlight < 2.16
Conflicts: less < 394-7.1
Conflicts: tar < 1:1.22
BuildArch: noarch