On Thu, Sep 29, 2011 at 5:27 AM, Dmitry Chestnykh
<[email protected]>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
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>



-- 
D. Richard Hipp
[email protected]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to