Please take a look at the following code,
snap=snapshot.file touch snapshot.file-1 $ [ -a $snap-1 ] && echo yes yes
What does the
test -a command tests for here?
info coreutils 'test invocation' and searched for
-a, but didn't find it in the file characteristic tests section, but rather in the connectives for test section.
test -a command an undocumented one?
- Before jump to any conclusion, please make sure you can duplicate the about result first.
- My system is Ubuntu 13.10 and my
man testsays GNU coreutils 8.20 October 2012 TEST(1).