[Fwd: Re: [GRASS5] Arrow keys and default pager]

Robert Lagacé lagace at echo.grr.ulaval.ca
Wed Apr 4 12:58:11 EDT 2001


The message was cut, so I shorten it:

-
Markus Neteler wrote:

> > ---
> > (taken from Init.sh)
> > I don't understand, why assuming "sed" is available is better than
> > assuming "which" is available. Init.sh already uses several non-sh
> > commands (sed, awk, grep, whoami). Why not "which"?
> 
> here some explanations:
> Unfortunately especially "which" doesn't appear on various platforms.
> And also "type -p" even doesn't work everywhere. The others (sed, awk, grep,
> whoami) are more common. That's the standardized un*x world :-(
> 
> o Linux: $> alias which
>   alias which='type -p'
> 
>   $> type -p grass5
>   /usr/local/bin/grass5
> 
> Solaris: $> alias which
>   alias: 'which' not found
> 
>   $> type -p grass5
>   /usr/local/bin/grass5
> 
> CRAY: $> alias which
>   which: alias not found
> 
>   $> type -p grass5
>   /usr/local/bin/grass5
> 
> We have found platforms (was it SGI) where "type -p" is not present. Urgs



More information about the grass-dev mailing list