Re: [Mingw-w64-public] basename with "/usr/"

2017-12-30 Thread Vincent Torri
On Sat, Dec 30, 2017 at 4:38 PM, Vincent Torri wrote: > hello > > I tried dirname and basename with all the examples found here : > https://linux.die.net/man/3/dirname > > and with "/usr/" I obtain > * for dirname : / (wich is correct) > * for basename : empty string (which is different from lin

Re: [Mingw-w64-public] basename with "/usr/"

2017-12-30 Thread Vincent Torri
On Sat, Dec 30, 2017 at 4:38 PM, Vincent Torri wrote: > hello > > I tried dirname and basename with all the examples found here : > https://linux.die.net/man/3/dirname > > and with "/usr/" I obtain > * for dirname : / (wich is correct) > * for basename : empty string (which is different from lin

Re: [Mingw-w64-public] basename with "/usr/"

2017-12-30 Thread Vincent Torri
also for dirname.c, line 74, maybe we should add a test like (refpath[0]>= 'a' && refpath[0]>= 'z') || (refpath[0]>= 'A' && refpath[0]>= 'Z') Vincent Torri On Sat, Dec 30, 2017 at 4:38 PM, Vincent Torri wrote: > hello > > I tried dirname and basename with all the examples found here : > https:/

[Mingw-w64-public] basename with "/usr/"

2017-12-30 Thread Vincent Torri
hello I tried dirname and basename with all the examples found here : https://linux.die.net/man/3/dirname and with "/usr/" I obtain * for dirname : / (wich is correct) * for basename : empty string (which is different from linux basename, should be "usr") is it a bug ? thank you Vincent Torr