I'm looking for a developer volunteer to fix the test fail "bug" in PDL::AutoLoader and upload the fix to cvs for the next developers release of PDL. Thanks in advance.
--Chris The improved diagnostic output from the t/autoloader.t tests indicates that the failure in the tilde expansion check is a result of a disagreement between the value calculated by PDL::AutoLoader and the value gotten by an independent calculation. As a check, I added the result of qx(echo ~) to the test output and I get that the shell agrees with the expected test value and not the one calculated by the AutoLoader routine. The fix I reccommend is to implement the algorithm from bash tilde expansion instead of the current code in Basic/AutoLoader.pm lines 262-264. From the bash reference manual, tilde expansion works as follows: > If a word begins with an unquoted tilde character (‘~’), > all of the characters up to the first unquoted slash (or all > characters, if there is no unquoted slash) are considered > a tilde-prefix. If none of the characters in the > tilde-prefix are quoted, the characters in the tilde-prefix > following the tilde are treated as a possible login name. > If this login name is the null string, the tilde is replaced > with the value of the HOME shell variable. If HOME is unset, > the home directory of the user executing the shell is > substituted instead. Otherwise, the tilde-prefix is replaced > with the home directory associated with the specified > login name. > > The following table shows how Bash treats unquoted > tilde-prefixes: > | > ~ > |The value of |$HOME| > > |~/foo > |$HOME/foo > > |~fred/foo > |The subdirectory |foo| of the home directory of the user |fred| _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
