[gnu.bash.bug] More on test -w

hugo@GRIGGS.DARTMOUTH.EDU (Peter Su) (06/29/89)

My last message was kind of bogus, I apologize.

The problem is that test -w always fails on directories. Seems that
the open call in SunOS 4.0 returns and error if you try to open a
directory for writing.  Thus, open may not be the way to handle the -w
switch to test.  Perhaps the fix would be to use access instead?

Pete