New review comment by Johnnynator on void-packages repository https://github.com/void-linux/void-packages/pull/23601#discussion_r456133358 Comment: Can't you just compare it to `${file##*/}`, is faster but should give the same output as basename. (find does afaik never give you a path with a trailing `/`)