> the current dirname tool does not support backslash support. This > patch fixes this.
- slash = strrchr (path, '/'); + slash = strrchr (path, delim); + if (slash == NULL) + delim = '\\'; + slash = strrchr (path, delim); I do not believe this is valid. It appears to say, if no / found in filename then fallback to using \ as the delimiter. But that is not valid for most operating systems. dirname /path/foo\bar/foobar /path/foo\bar dirname /path/foo\bar /path/foo <- Incorrect Bob _______________________________________________ Bug-sh-utils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-sh-utils
