Overview
Artifact ID: | b88445aa5ff66532440cf3cf8913dee07075a15e |
---|---|
Ticket: | 46bf4baedcea6ca9df279e3ddd813c263db46f1c
wrongly reported illigal character, "[" and "]" |
User & Date: | drh 2010-02-10 20:13:40 |
Changes
- comment changed to:
This has been tested under windows only. Create a file named: $ () + ,-!= @ [ ]^_{ }~.txt This file is perfectly legal under windows (WinXP) but if i try to add it via: fossil add "testCase-fileUpload\$ () + ,-!= @ [ ]^_{ }~.txt" I get fossil: filename contains illegal characters: testCase-fileUpload/$ ( ) + ,-!= @ [ ]^_{ }~.txt Basically it chokes over the ] and [ characters. Regards. <hr><i>drh added on 2010-02-10 13:20:00:</i><br> The [ and ] characters are also legal for Unix filenames. (Any character other than 0x00 and / is valid in a unix filename.) But [ and ] are used as globbing characters by the shell, so there use must be escaped in the shell. this can lead to subtle problems. So as a safety mechanism, I deliberately disallow such filename characters in Fossil. Behavior is by design.