On Tue, 14 Aug 2007, Rihards Kazainis wrote:

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.


Cheers,
Phil


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to