jed-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Problem with path_basename()


Martin Klaiber <martinkl@xxxxxxxxxxxxxxxxxx> wrote:
>So, path_basename("Makefile") and path_basename("Makefile.foo") should
>give the same results.  Actually the extension is not stripped, does
>someone know why?

The function strips the directory component, not the extension.  You
may want:

     path_basename (path_sans_extname ("Makefile.foo"))

--John

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]