Hi Sebastian,

Today Sebastian Harl wrote:
>
> What I don't understand though is why '\\' is supposed to mark the
> beginning of the filename. Tobi, is that supposed to take care of
> Windows? In theory, '\\' may be used in filenames on Unix systems, so
> this might behave incorrectly then. Is there any reason why you don't
> use the basename(3) function instead? That's defined in POSIX.1-2001s
> an XSI extension), so it should not cause any problems.

yes the \\ is for our backslashing windows friends ... just read
the basename manpage it sonds scary all the caveats ... do you know
who supports posix.1-2001 ?

If this is widely adoped, it is certainly more elegant tha
implementing it ourselfs.

cheers
tobi


> TIA,
> Sebastian
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [EMAIL PROTECTED] ++41 62 775 9902 / sb: -9900

_______________________________________________
rrd-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

Reply via email to