Skip to content

basename returns "." not in filename (PR#13958)

1 message · Simon Urbanek

#
Jens,
On Sep 18, 2009, at 15:08 , Jens Oehlschl=E4gel wrote:

            
Of course you can - but that's unrelated to the bug report.
I don't see the connection - I would suggest you read the IEEE Std =20
1003.1-2001 which defines the behavior of basename (and the R =20
documentation for basename clearly states the behavior as well).  The =20=

fact that you are trying to use the wrong tool for your purpose =20
doesn't mean that the tool is broken. I would advise you to ask on R-=20
help how to implement your pattern specification (just FWIW it's non-=20
standard and requirement of trailing slashes does lead to very nasty =20
problems for the user).

Cheers,
Simon