[GRASSLIST:5012] RE: cvs login: warning: failed to open //.cvspas s for reading: No suc h file or directory

Glynn Clements glynn at gclements.plus.com
Wed Dec 1 04:54:51 EST 2004


Patton, Eric wrote:

> Ok, I've noticed something related to my last question that might be the
> problem....when I log out of Cygwin Grass 5.7, I get the following message:

> Closing monitors.....
> 
> Cleaning up temporary files.....
> 
> cp: cannot create regular file '//.grassrc57': No such file or directory
> 
>  
> 
> Goodbye from GRASS GIS

> Where are those double slashes coming from? Is that a typical Cygwin error?
> I seem to recall there was a thread about double slashes ending up in
> directory and file paths under Cygwin, does anyone know about this error?

The error message is a result of the following command at the bottom
of etc/Init.sh:

	# Save GISRC
	cp "$GISRC" "$GISRCRC"

GISRCRC is set at the top of that file as:

	GISRCRC="$HOME/.grassrc57"

This will fail on Cygwin if $HOME is "/", as Windows (and thus Cygwin)
uses the "//" notation for SMB network shares.

You should ensure that Cygwin sets $HOME to something other than "/",
typically "/home/<username>".

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list