Here are many comments on some questions (especially for shell) that say basically one or more of the following:
$filaneme is a directory and not regular file,While I understand that every script needs its own testing environment, but these are some common things for what the script should be immune against.
So, my intention is to write a script what will create some directory hierarchy with "specially crafted" file names for testing purposes.
The question is: what "special" file names are good for this test?
Currently I have (the script creates files and directories) with:
- (like command argument)# (comment char)! (command history)| char (pipe)() chars* and ? (wildcards)Any other idea what I shouldn't miss?
What comes to my mind:
$ character at the start> < << <<<
~ char ($HOME)\
basically, go thru ascii table and test all chars, if you think that you need this :)
Some another comments:
hard-links.Not directly about special characters in the filenames, but it is good care about:
image.jpg image.JPG, same filename only different extension EDIT: Ideas from the comments:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With