in reply to Re^2: File testing via list of test operators
in thread File testing via list of test operators
Great catch JavaFan!
You can also get contradictory answers, in this case, both -s and -z returning false, if ./test.pl does not exist. It clearly isn't your problem here, but if you are applying this sequence of tests to arbitrary files, you might want to do the test for existence separately before passing the file through the gauntlet of your hashed up tests.
|
|---|