litte understanding problem with test

2007-05-18 Thread Alexander Kahl
Hi, I built automake and ran the testsuite and one test failed (instsh2.test). So I tracked down the error to the execution of 'test ! -w file'. I thought it would check that I don't have write permission to this file. I tried: echo foofile chmod 444 file test ! -w file echo no write

Re: litte understanding problem with test

2007-05-18 Thread Jim Meyering
Alexander Kahl [EMAIL PROTECTED] wrote: echo foofile 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

Re: litte understanding problem with test

2007-05-18 Thread Jim Meyering
[EMAIL PROTECTED] wrote: Thanks for your fast answer :) I tried it as user and it works, seems to be a root issue [EMAIL PROTECTED]:/tmp$ echo foofile chmod 444 file test ! -w file echo no write permission no write permission [EMAIL PROTECTED]:/tmp# echo foofile chmod 444 file test !

Re: litte understanding problem with test

2007-05-18 Thread alexander . kahl
Thanks for your fast answer :) I tried it as user and it works, seems to be a root issue [EMAIL PROTECTED]:/tmp$ echo foofile chmod 444 file test ! -w file echo no write permission no write permission [EMAIL PROTECTED]:/tmp# echo foofile chmod 444 file test ! -w file echo no write

Re: litte understanding problem with test

2007-05-18 Thread Bob Proulx
[EMAIL PROTECTED] wrote: Thanks for your fast answer :) I tried it as user and it works, seems to be a root issue root, as in the superuser? The user that has write permission for all files on the system? [EMAIL PROTECTED]:/tmp$ echo foofile chmod 444 file test ! -w file echo no write