This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Path problems in Makefile


> From: cygwin-owner at cygwin dot com [mailto:cygwin-owner at cygwin dot com]On Behalf
> Of Justin Birtwell

> When referenced in the script all the '\' are removed.

 '\' is "the escape character", compare to how it is used in C/C++ code. 

Try something similar to:

-- 
	$ DEV_ROOT='C:\gnu\emacs-21.2\workspaces'

	$ echo $DEV_ROOT
	C:\gnu\emacs-21.2\workspaces

-- 
	$ DEV_ROOT=C:\\gnu\\emacs-21.2\\workspaces

	$ echo $DEV_ROOT
	C:\gnu\emacs-21.2\workspaces

-- 
	$ DEV_ROOT=`cygpath -u 'C:\gnu\emacs-21.2\workspaces'`

	$ echo $DEV_ROOT

	/cygdrive/c/gnu/emacs-21.2/workspaces
-- 

... where using the last probably will be the least error prone (my guess).


/Hannu E K Nevalainen, Mariefred, Sweden 

--END OF MESSAGE-- 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]