/*([^/]*)/*$
, now capturing the non-/
segment. If the segment is empty it unifies -Name with /
if File starts with /
and the empty
atom (''
) otherwise. The behaviour is consistent with the
POSIX basename program.157Before
SWI-Prolog 7.7.13, if argPath ended with a /
-Name
was unified with the empty atom.