[GRASS-dev] how to check for system in TclTk

Hamish hamish_nospam at yahoo.com
Fri May 11 00:30:02 EDT 2007

William Kyngesburye wrote:
> So, without uname, is there another reliable way on the command line/ 
> in a shell script, not in Tcl?
> I worked a way to get grass-xterm-wrapper to work with the OSX  
> Terminal.app instead of X11 xterm, but I use uname to check the  
> system so OSX defaults to Terminal.app.  It'll still work without  
> that bit, but GRASS_XTERM would need to be explicitly set - no big  
> deal, I can move the default to the OSX startup or init.sh.

AFAIU it's only on native Windows where uname is a problem. It's fine on
BSD/OSX. grass-xterm-wrapper is explicitly a #!/bin/sh script, so using
UNIXisms inside that is not a problem. Or another way, native Windows
can't use the grass-xterm-wrapper script anyway.


More information about the grass-dev mailing list