[GRASS5] html to man conversion

Michel Wurtz mw at teledetection.fr
Tue Dec 5 13:35:43 EST 2000


Markus Neteler wrote:
> 
> Hi again,
> 
> unfortunately another bug found on SUN in
> html/Gmakefile
> 
> Copying html pages
> /bin/sh: test: unknown operator -ot
> 
> I don't know the meaning of -ot, but it's not portable
> (Huidae, Michel?).

Uh ? excerpt from SunOS 5.7 man page of test
 
     file1 -ot file2
               True, if file1 exists and is older than file2.
                                                                
BUT... [ or test are in /usr/ucb or /usr/bin for sun =>

$ if /usr/bin/test Lespinard.zip -ot Duclaux.zip ; then echo ok ; fi
ok
$ if /usr/ucb/test Lespinard.zip -ot Duclaux.zip ; then echo ok ; fi
test: unknown operator -ot
$

Conclusion :  
if test file1 -ot file2 ; then echo ok ; fi      # doesn't work
if /bin/test file1 -ot file2 ; then echo ok ; fi # works !

Silly mixing of old SunOS and new Solaris versions... !

--
Michel WURTZ - DIG - Maison de la télédétection
               500, rue J.F. Breton
               34093 MONTPELLIER Cedex 5

---------------------------------------- 
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