4 # add should fail on files it can't read (because it would fail to record it later anyway)
6 if echo $OS |
grep -i windows
; then
7 echo This
test does not work on Windows
16 chmod 0000 no_perms.txt
17 # surely there is an easier way to write this 'not'
18 # i'm think of the 'finally' in try/catch/finally
19 dacrs add no_perms.txt
2> log
&& (chmod 0755 no_perms.txt
; exit 1) ||
chmod 0755 no_perms.txt
20 grep -i 'permission denied' log