[Thread Prev][Thread Next][Thread Index]

Re: Problem starting up v1.100



I've solved my own problem.  The shell I use does not export PWD to the
environment, so using $PWD in Setup will not always work.  Here is the
diff required to fix it:

# diff -c Setup.save Setup
*** Setup.save  Thu Oct  9 22:43:46 1997
--- Setup       Fri Nov  7 10:39:54 1997
***************
*** 78,87 ****
  
  BEGIN
  {
!     unshift(@INC, "$PWD/lib/perl5/\$Config::Config{archname}/$]");
!     unshift(@INC, "$PWD/lib/perl5/\$Config::Config{archname}");
!     unshift(@INC, "$PWD/lib/perl5");
!     unshift(@INC, "$PWD");
  }
  
  require 5.003;
--- 78,92 ----
  
  BEGIN
  {
!     use Cwd;
! 
!     my (\$PWD);
! 
!     \$PWD = Cwd::cwd();
!     unshift(@INC, "\$PWD/lib/perl5/\$Config::Config{archname}/\$]");
!     unshift(@INC, "\$PWD/lib/perl5/\$Config::Config{archname}");
!     unshift(@INC, "\$PWD/lib/perl5");
!     unshift(@INC, "\$PWD");
  }
  
  require 5.003;


Charlie

---------------------------------------------------------------------
********************************************
*   PLEASE DO NOT POST PILOTMANAGER BUGS   *
*  TO THIS ALIAS.  SUBMIT BUG REPORTS VIA  *
*     THE FEEDBACK MENU IN PILOTMANAGER    *
*             --------------------         *
*      This is a public mailing list!      *
*  Please do not publish Sun proprietary   *
*            information here!             *
********************************************


SourceForge.net Logo