%% Eli Zaretskii <[EMAIL PROTECTED]> writes:

  ez> Works for me, although if it needs to be invoked from cmd.exe, the
  ez> stock Windows shell, you need to use ".." instead of '..', like this:

  ez>   perl -e "use POSIX qw(getcwd); my $d = getcwd(); print \"$d\n\";"

Well, of course the real code is in a big Perl script file so quoting is
not an issue.

However, I just realized that I don't think we can use this anyway.  The
test suite runs on systems like OpenVMS which don't, I'm pretty sure,
have a POSIX module.  So, if I add something like "use POSIX;" to the
test suite, it won't even run (Perl will error).


Hm.  I guess I could use require inside of eval, instead of use... yes,
that works.  Neat!

OK, I've committed some new code that tries to use POSIX::getcwd() as
long as it exists.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Make-w32 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/make-w32

Reply via email to