man.sh (625490e8426cb754db2bc9f67da52bb05a386ea0) man.sh (47cc9ee1b1d48870786a926ed9592cecdf9b1896)
1#! /bin/sh
2#
3# SPDX-License-Identifier: BSD-2-Clause-FreeBSD
4#
5# Copyright (c) 2010 Gordon Tetlow
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

--- 887 unchanged lines hidden (view full) ---

896 # Setup pager.
897 if [ -z "$MANPAGER" ]; then
898 if [ -n "$MANCOLOR" ]; then
899 MANPAGER="less -sR"
900 else
901 if [ -n "$PAGER" ]; then
902 MANPAGER="$PAGER"
903 else
1#! /bin/sh
2#
3# SPDX-License-Identifier: BSD-2-Clause-FreeBSD
4#
5# Copyright (c) 2010 Gordon Tetlow
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

--- 887 unchanged lines hidden (view full) ---

896 # Setup pager.
897 if [ -z "$MANPAGER" ]; then
898 if [ -n "$MANCOLOR" ]; then
899 MANPAGER="less -sR"
900 else
901 if [ -n "$PAGER" ]; then
902 MANPAGER="$PAGER"
903 else
904 MANPAGER="more -s"
904 MANPAGER="less -s"
905 fi
906 fi
907 fi
908 decho "Using pager: $MANPAGER"
909}
910
911# Usage: trim string
912# Trims whitespace from beginning and end of a variable

--- 112 unchanged lines hidden ---
905 fi
906 fi
907 fi
908 decho "Using pager: $MANPAGER"
909}
910
911# Usage: trim string
912# Trims whitespace from beginning and end of a variable

--- 112 unchanged lines hidden ---