[GRASS5] which, less and SUBMITTING

Andreas Lange Andreas.Lange at Rhein-Main.de
Wed Apr 11 13:05:34 EDT 2001


Hi Reinhard,

one simple question: Why don't you put a "export PAGER=less" in your
.profile or .bashrc (or other startup file depending on your favourite
shell)?
This would allow individual customization of the pager, which is in my
eyes the purpose of the GRASS initialization setup. The code in init.sh
is IMHO only providing a fallback in case no PAGER variable is set. 

The problem with the G_which shell script is that the scripts depending
on which (some of them are written by me, i admit), must be changed. 

Under cygwin/windows i created a system wide script which looks like
that:

#!/bin/sh
SAVEIFS="$IFS"
IFS=":"
FOUND=""
for FILE in $PATH ; do
   if [ -x "$FILE/$1" ] ; then
      FOUND="$FILE/$1"
   fi
done
IFS="$SAVEIFS"
echo -n $FOUND

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list