basename
${foo##*/}
Seriously, why the fuck are people still using a subprocess that is completely and totally unneeded — even in POSIX shell.