On Sep 18, 2009, at 12:11 , Peter Dalgaard wrote:
jo...@web.de wrote:
Full_Name: Jens Oehlschlägel
Version: 2.9.2
OS: Win32
Submission from: (NULL) (85.181.152.156)
# Obviously an empty basename is allowed (if the filepath is a pure
path)
basename("/")
[1] ""
# but here we get the dot from the path
basename("./")
[1] "."
Command line utility does likewise:
viggo:~/>basename ./
.
Point is, I gather, that trailing slashes are removed, e.g.,
viggo:~/>basename foo/
foo
So, not a bug.
Indeed. The rationale is that foo/bar/ specifies a directory "bar" at
the path "/foo", hence the name is "bar" ("" would make no sense of
course).
Cheers,
Simon
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel