- edited description
too many versions of basename
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)
-
reporter -
reporter - changed title to too many versions of basename
- edited description
-
reporter - changed status to resolved
fixes
#33too many versions of basename→ <<cset 4eb801ccad73>>
-
reporter fixes
#33too many versions of basename (fix lint)→ <<cset 048839a8611b>>
- Log in to comment