when executed with file name containing spaces, basename returns only
first part of file name (until space).
I can't reproduce this:
$ basename --version
basename (GNU coreutils) 5.93
$ basename '/tmp/filename with spaces'
filename with spaces
Could you give an example transcript of the problem you're seeing. It's
possible there's a misunderstanding about how the shell passes
arguments to basename; be sure to quote the filename properly.