too many versions of basename

Issue #33 resolved
Garrett D'Amore repo owner created an issue

There are three versions of basename on the system:

/usr/bin/basename -- treats suffix as a regular expression (!) /usr/xpg4/bin/basename -- suffix is just an ordinary string, but handles "--" per POSIX option handling /usr/ucb/basename -- does none of the above

The XPG4 behavior is specified by SUS[v1,v2,v3,v4]. Its time to make it the default, and really only option on the system. Nobody uses the expression behavior (its not available on any other widely deployed system), and it contravenes POSIX. Its also slower, since it has to do some ugly locale specific things. The xpg4 behavior is faster, simpler, and CORRECT.

We can consolidate. (This is probably the first "contentious" change change in my tree.)

Comments (4)

  1. Log in to comment