----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 6:57 PM
Subject: bug in basename ?


>
> In using basename I ran across the following condition
> that seems to be incorrect:
>
>     basename a.b/c .b
>
> Produces:
>     c
>
>
> info basename says that the suffix is removed only
> if it is identical to the END of the name.
> Am I reading this incorrectly?

Yes, but only half of it. The first sentence says:

    `basename' removes any leading directory components from NAME.

So, "a.b/c" becomes just "c". Afterwards the suffix is checked for a
possible match.

Greetings
Uwe



_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to