What character sequence should I not allow in a filename?

后端 未结 6 1943
别跟我提以往
别跟我提以往 2020-12-06 04:55

I found out after testing that linux allows any character in a file name except for / and null (\\0). So what sequence should I not allow in a file

6条回答
  •  难免孤独
    2020-12-06 05:19

    Since you seem to be interested primarily in Linux, one thing to avoid is characters that the (typical) shell will try to interpret, for example, as a wildcard. You can create a file named "*" if you insist, but you might have some users who don't appreciate it much.

提交回复
热议问题