[GRASS5] GRASS_PAGER
Hamish
hamish_nospam at yahoo.com
Thu Mar 10 22:47:09 EST 2005
> I have recently tried GRASS6 on Mac and MSWindows and found that
> GRASS_PAGER uses less instead of more, which is very incovenient
> (and for some people confusing, because you have to type q after
> running g.list to get your grass prompt back).
..
> it is there already and it looks like it uses less if it cannot find
> more under /bin ???
>
> 173 # Once the new environment system is committed we can delete
> these lines
> 174 # Export the PAGER environment variable for those who have it
> set
> 175 if [ "$PAGER" ] ; then
> 176 export PAGER
> 177 fi
> 178
> 179 # Set some environment variables if they are not set
> 180 if [ ! "$GRASS_PAGER" ] ; then
> 181 if [ -x /bin/more ] ; then
> 182 GRASS_PAGER=more
> 183 else
> 184 GRASS_PAGER=less
> 185 fi
> 186 export GRASS_PAGER
On Mac OSX, "more" is in /usr/bin/. init.sh updated in CVS to look
there too before reverting to "less". Where is it on cygwin?
Hamish
More information about the grass-dev
mailing list