Menu

#511 merge-pathnames delivers wrong path

closed-works-for-me
clisp (524)
5
2009-01-07
2008-12-09
steve
No

I am using clisp to build ABCL. This requires the use of the JDK path plus "bin/java". The JDK path is "/usr/local/java/jdk1.6/" merge-pathnames delivers "/usr/local/java.6/bin/java"

Admittedly slightly older version 2.41

Discussion

  • Sam Steingold

    Sam Steingold - 2008-12-09

    WFM:

    > (merge-pathnames "bin/java" "/usr/local/java/jdk1.6/" )
    #P"/usr/local/java/jdk1.6/bin/java"

    please supply a test case instead of a free text description of the problem.

     
  • Sam Steingold

    Sam Steingold - 2008-12-09

    This bug report is now marked as "pending"/"works for me".
    This means that we think that we cannot reproduce the problem
    and cannot do anything about it.
    Unless you - the reporter - act within 2 weeks
    (e.g., by submitting a self-contained test case
    or answering our other recent requests),
    the bug will be permanently closed.
    Sorry about the inconvenience -
    we hope your silence means that
    you are no longer observing the problem either.

     
  • Sam Steingold

    Sam Steingold - 2008-12-09
    • milestone: --> ANSI compliance issue
    • assigned_to: haible --> sds
    • status: open --> pending-works-for-me
     
  • steve

    steve - 2008-12-09

    The work around I found was that it needed a slash after the jdk...

    Sorry to bother you.

     
  • Sam Steingold

    Sam Steingold - 2008-12-09

    indeed, without the trailing slash, the last component becomes a file name, not a part of the directory list, therefore the name "jdk1" is discarded (because "bin/java" already has a name - "java") while the extension ".6" is merged into, thus you end up with #P"/usr/local/java/bin/java.6".
    http://clisp.cons.org/impnotes/dir-is-not-file.html#probe-path should help you avoid this problem.

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-works-for-me --> closed-works-for-me
     

Log in to post a comment.