[fossil-users] Square brackets in filenames
What's the rationale for disallowing [ and ] in filenames? Are there any systems that don't like them (maybe FAT)? Or maybe this is due to collision with [wiki/ci links]? From file_is_simple_pathname(const char *z): ** * Does not contain any of these characters in the path: \*[]? Brackets are not mentioned here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx and here http://en.wikipedia.org/wiki/Comparison_of_file_systems however NTFS doesn't allow: : | ? * / \ -- Dmitry Chestnykh ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Square brackets in filenames
On Thu, Sep 29, 2011 at 5:27 AM, Dmitry Chestnykh dmi...@codingrobots.comwrote: What's the rationale for disallowing [ and ] in filenames? Are there any systems that don't like them (maybe FAT)? Or maybe this is due to collision with [wiki/ci links]? Special characters like this are a minefield of potential bugs. I disallowed them for robustness and to avoid having to provide lots of escapes and work-arounds for globbing and whatnot. From file_is_simple_pathname(const char *z): ** * Does not contain any of these characters in the path: \*[]? Brackets are not mentioned here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx and here http://en.wikipedia.org/wiki/Comparison_of_file_systems however NTFS doesn't allow: : | ? * / \ -- Dmitry Chestnykh ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Square brackets in filenames
Actually, FAT and NTFS both support brackets in file names. I ran into this issue of brackets when trying to version uncompressed Office 2007 documents (docx is just a zip that contains xml files, including a [Content-Types].xml at the root). On Thu, Sep 29, 2011 at 13:43, Richard Hipp d...@sqlite.org wrote: On Thu, Sep 29, 2011 at 5:27 AM, Dmitry Chestnykh dmi...@codingrobots.com wrote: What's the rationale for disallowing [ and ] in filenames? Are there any systems that don't like them (maybe FAT)? Or maybe this is due to collision with [wiki/ci links]? Special characters like this are a minefield of potential bugs. I disallowed them for robustness and to avoid having to provide lots of escapes and work-arounds for globbing and whatnot. From file_is_simple_pathname(const char *z): ** * Does not contain any of these characters in the path: \*[]? Brackets are not mentioned here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx and here http://en.wikipedia.org/wiki/Comparison_of_file_systems however NTFS doesn't allow: : | ? * / \ -- Dmitry Chestnykh ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users -- Benoit Mortgat 20, avenue Marcel Paul 69200 VĂ©nissieux, France +33 6 17 15 41 58 +33 4 27 11 61 23 ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users