Alexander Kahl <[EMAIL PROTECTED]> wrote: > echo foo>file > chmod 444 file > test ! -w file && echo "no write permission" > > no output was given back.
It should indeed write "no write permission". However, the "test" program you're using there is probably the built-in one from your shell, and not the one from coreutils. If you want to use a specified binary, invoke it like this, for example: /usr/bin/test ! -w file && echo "no write permission" _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
