[GRASS5] [bug #903] (grass) g.manual on cygwin

Glynn Clements glynn.clements at virgin.net
Sat Jan 19 15:18:45 EST 2002


Request Tracker wrote:

> Subject: g.manual on cygwin
> 
> Platform: MS W2K/cygwin
> Xwindows version: Star Net Demo
> Xwindows manager: internal StarNe
> TclTk version: tcl/tk 8.0
> grass downloaded at: Trento site
> grass binary for platform: I compiled the sources myself
> grass sources source: no, I got a source code package from the server, pre3
> c compiler name: gcc
> 
> g.manual does not work on cygwin.
> Not from command line, nor from tcltkgrass:
> 
> GRASS:~ > g.manual d.ask
> getopts: not found
> expr: syntax error
> What manual page do you want?
> GRASS:~ > 
> 
> I thought that we had fixed that error. 
> 
> The problem is IMHO that the cygwin standard shell does not have
> getopts builtin.
> 
> Replacing the standard shell on cygwin with bash IMHO hurts
> performance very much, compiling is very slow already.
> 
> Any ideas?

Either:

a) change "#!/bin/sh" to "#!/bin/bash" at the top of g.manual, or
b) re-write g.manual not to require any bash-isms.

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list