This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Path problems in Makefile
- From: "Hannu E K Nevalainen (garbage mail)" <garbage_collector at telia dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 17 Apr 2003 20:22:00 +0200
- Subject: 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/