This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Problem with test -r
- To: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Subject: Re: Problem with test -r
- From: Nicholas J Brealey <nick dot brealey at aeat dot co dot uk>
- Date: Mon, 20 Oct 1997 17:33:30 +0100
- CC: gnu-win32 at cygnus dot com
- References: <199710171455.PAA03910@sdssuna.culham.aeat.co.uk><199710180806.SAA29556@murlibobo.cs.mu.OZ.AU>
I seem to have deleted the crucial line in my original report.
The problems is that test -r does not return true when a file exists
and is is readable:
bash$ echo hello > xxxx
bash$ chmod og-rwx xxxx
bash$ if test -r xxxx ; then echo OK ;fi
bash$ cat xxxx
hello
bash$ ls -l xxxx
-rw------- 1 1010 everyone 7 Oct 20 16:31 xxxx
bash$
On Solaris I get:
bash$ echo hello > xxxx
bash$ chmod og-rwx xxxx
bash$ if test -r xxxx ; then echo OK ;fi
OK
bash$ cat xxxx
hello
bash$ ls -l xxxx
-rw------- 1 nick users 6 Oct 20 17:28 xxxx
bash$
Sorry for any confusion caused !
Nick
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".