diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2001-10-16 17:19:18 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-10-16 17:19:18 +0000 |
commit | 5437faa28c0cf86c7241f523909ce33ad4839672 (patch) | |
tree | 6f18a5cfe4047d32986ff3a7714ec1178929e3c3 /Test/C02cond.ztst | |
parent | 6cdd20e367e465bdc70e0616aa2dfbcfd05b1222 (diff) | |
download | zsh-5437faa28c0cf86c7241f523909ce33ad4839672.tar.gz zsh-5437faa28c0cf86c7241f523909ce33ad4839672.tar.xz zsh-5437faa28c0cf86c7241f523909ce33ad4839672.zip |
Merge assorted patches from the dev. version, as approved by PWS.
Read ChangeLog for details.
Diffstat (limited to 'Test/C02cond.ztst')
-rw-r--r-- | Test/C02cond.ztst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index b575e92be..b320634d5 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -85,7 +85,12 @@ fi 0dD:-p cond - [[ -r zerolength && ! -r unmodish ]] + if (( EUID == 0 )); then + print -u8 'Warning: Not testing [[ ! -r file ]] (root reads anything)' + [[ -r zerolength && -r unmodish ]] + else + [[ -r zerolength && ! -r unmodish ]] + fi 0:-r cond [[ -s nonzerolength && ! -s zerolength ]] |