public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Problem with test -r
@ 1997-10-17  8:23 Nicholas J Brealey
       [not found] ` <199710180806.SAA29556@murlibobo.cs.mu.OZ.AU>
  0 siblings, 1 reply; 2+ messages in thread
From: Nicholas J Brealey @ 1997-10-17  8:23 UTC (permalink / raw)
  To: gnu-win32

Hi

I am using the CYGWIN32 port of bash with great success but I have
just encountered one minor problem with test -r:


On Windows NT 4.0 SP3 I get:

bash$ touch xxxx
bash$ ls -l xxxx
-rw-rw-rw-   1 1010     everyone        0 Oct 17 14:31 xxxx
bash$ if test -r xxxx ; then echo ok ;fi
ok
bash$ chmod o-rwx xxxx
bash$ ls -l xxxx
-rw-rw----   1 1010     everyone        0 Oct 17 14:31 xxxx
bash$ 

On Solaris 2.5 with bash 2.01.0 I get:


bash$ touch xxxx
bash$ ls -l xxxx
-rw-r--r--   1 nick     users          0 Oct 17 15:46 xxxx
bash$ if test -r xxxx ; then echo OK ; fi
OK
bash$ chmod o-rwx xxxx 
bash$ ls -l xxxx
-rw-r-----   1 nick     users          0 Oct 17 15:46 xxxx
bash$ if test -r xxxx ; then echo OK ; fi
OK
bash$ 

I am using b18 with the original bash but with Sergey's cygwin.dll's
from 24 September 1997.

The output of mount looks like:

bash$ mount
mount
Device           Directory           Type        Flags
\\.\tape1:       /dev/st1            native      no-mixed,text!=binary
\\.\tape0:       /dev/st0            native      no-mixed,text!=binary
\\.\b:           /dev/fd1            native      no-mixed,text!=binary
\\.\a:           /dev/fd0            native      no-mixed,text!=binary
f:\gnuwin32\b18\H-i386-cygwin32 /                   native      no-mixed,text!=binary
bash$

Does anyone have any ideas?

Regards

Nick
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem with test -r
       [not found] ` <199710180806.SAA29556@murlibobo.cs.mu.OZ.AU>
@ 1997-10-20  9:34   ` Nicholas J Brealey
  0 siblings, 0 replies; 2+ messages in thread
From: Nicholas J Brealey @ 1997-10-20  9:34 UTC (permalink / raw)
  To: Fergus Henderson; +Cc: gnu-win32

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".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-10-20  9:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-17  8:23 Problem with test -r Nicholas J Brealey
     [not found] ` <199710180806.SAA29556@murlibobo.cs.mu.OZ.AU>
1997-10-20  9:34   ` Nicholas J Brealey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).