comparison octave-bug.in @ 5229:9b0ff1aefcbe

[project @ 2005-03-21 20:37:44 by jwe]
author jwe
date Mon, 21 Mar 2005 20:37:44 +0000
parents aa9bc151d2fa
children 9ecae85335fa
comparison
equal deleted inserted replaced
5228:189fe4f85c77 5229:9b0ff1aefcbe
88 fi 88 fi
89 fi 89 fi
90 90
91 : ${EDITOR=$DEFEDITOR} 91 : ${EDITOR=$DEFEDITOR}
92 92
93 : ${PAGER=more} 93 if [ -z "$DEFPAGER" ] && [ -z "$PAGER" ]; then
94 if [ -x /usr/bin/pager ]; then
95 DEFPAGER=pager
96 elif [ -x /usr/bin/less ]; then
97 DEFPAGER=less
98 elif [ -x /usr/bin/less ]; then
99 DEFPAGER=less
100 elif [ -x /usr/local/bin/less ]; then
101 DEFPAGER=less
102 elif [ -x /usr/bin/more ]; then
103 DEFPAGER=more
104 elif [ -x /bin/more ]; then
105 DEFPAGER=more
106 elif [ -x /usr/bin/pg ]; then
107 DEFPAGER=pg
108 elif [ -x /bin/pg ]; then
109 DEFPAGER=pg
110 else
111 echo "octave-bug: No default pager found: attempting to use more" >&2
112 DEFPAGER=more
113 fi
114 fi
115
116 : ${PAGER=$DEFPAGER}
94 117
95 trap 'rm -f $TEMP $TEMP.x; exit 1' 1 2 3 13 15 118 trap 'rm -f $TEMP $TEMP.x; exit 1' 1 2 3 13 15
96 trap 'rm -f $TEMP $TEMP.x' 0 119 trap 'rm -f $TEMP $TEMP.x' 0
97 120
98 UN= 121 UN=