Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Backslash in pwd yields unsafe absolute working directory(Backslash in pwd yields unsafe absolute working directory)
Backslash in pwd yields unsafe absolute working directory [message #1018590] Thu, 14 March 2013 06:31
Martins Pukitis is currently offline Martins Pukitis
Messages: 3
Registered: January 2013
Junior Member
I'm building a Makefile project with MinGW and msys. The makefile calls configure. There is this check in it:
case `pwd` in
  *[\\\"\#\$\&\'\`$am_lf]*)
    echo "unsafe absolute working directory name" ;;
esac

It returns
configure: error: unsafe absolute working directory name
because there is a backslash in the path: L:\build_win32
I've specified Build directory under Preferences / C/C++ Build as "L:/build_win32".
When I run configure from Windows command line (with sh configure ...), it runs fine, with working directory "/l/build_win32".
How do I make Eclipse return pwd with a forward slash?
Previous Topic:add cdt to eclipse for java
Next Topic:Create empty project from commandline (.project and .cproject) missing
Goto Forum:
  


Current Time: Tue Sep 23 14:32:56 GMT 2014

Powered by FUDForum. Page generated in 0.01620 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software