🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #170

Bug in test

#170
From: Peter Su
Date: Wed, 28 Jun 1989 19:30
17 lines
587 bytes
The bash "test -w" builtin seems to be broken.  It returns false no
matter what I give it. 

For example

if test -w ~
then
  echo foo
else
  echo bar
fi

says "bar", which is wrong.



Pete
Technical Details
Message-ID: <8906281930.AA00809@griggs.dartmouth.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!GRIGGS.DARTMOUTH.EDU!hugo

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!GRIGGS.DARTMOUTH.EDU!hugo
From: hugo@GRIGGS.DARTMOUTH.EDU (Peter Su)
Newsgroups: gnu.bash.bug
Subject: Bug in test
Message-ID: <8906281930.AA00809@griggs.dartmouth.edu>
Date: 28 Jun 89 19:30:42 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 17