[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
litte understanding problem with test
From: |
Alexander Kahl |
Subject: |
litte understanding problem with test |
Date: |
Fri, 18 May 2007 02:08:55 +0200 |
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 foo>file
chmod 444 file
test ! -w file && echo "no write permission"
no output was given back. As I read the man page it tells me that it also
checks for the existence of the file.
Maybe that's why no output is given back? This confuses me.
Best regards,
Alex
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
- litte understanding problem with test,
Alexander Kahl <=