AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.15.12.133


Current Path : /snap/core20/2434/bin/
Upload File :
Current File : //snap/core20/2434/bin/sensible-pager

#!/bin/sh

# Prevent recursive loops, where these values are set to this script
p="$(which sensible-pager)"
[ -n "$PAGER" ] && [ "$(which $PAGER || true)" = "$p" ] && PAGER=

${PAGER:-pager} "$@"
ret="$?"
if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
more "$@"
ret="$?"
	if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
		echo "Couldn't find a pager!" 1>&2
		echo "Set the \$PAGER environment variable to your desired pager." 1>&2
		exit 1
	fi
fi