Nalin Perera <[EMAIL PROTECTED]> writes: > From where can I find the valid characters that should be in a linux file > name. And what are the invalid characters?
Strictly speaking, only '/' is disallowed. Practically, it depends on how much trouble you are willing to go to. Create a filename containing ^G (Ctrl-G) and the computer will beep angrily each time you do ls in the directory that contains it. If you use characters that have a meaning in shell (*&#$ etc) you'll have to escape them. Whitespace is allowed but is awkward, too. And if you plan to share files with various descendans of DOS I suggest you don't use ':'. The list goes on. If you intend to write a program that needs to parse any legal filename correctly, it should know that '/' delimits directories and anything else goes in between... -- Oleg Goldshmidt | [EMAIL PROTECTED] If it aint't broken it hasn't got enough features yet. _______________________________________________ Seawolf-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/seawolf-list