Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Subject: Re: problem with test -w file Sender: "lhall AT pop DOT ma DOT ultranet DOT com" From: "lhall AT pop DOT ma DOT ultranet DOT com" Date: Wed, 12 May 1999 16:07:30 -0400 To: "\"\" <", "\"\" <" X-Priority: 3 X-MSMail-Priority: Normal MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Mailer: JMail 3.6.0 by Dimac (www.dimac.net) Message-Id: <199905121607.SM00214@phantom.softcomca.com> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from Quoted-Printable to 8bit by delorie.com id QAA15641 Check the archive for a discussion on this issue but the short answer is, currently, unless the file is writable "across the board" (i.e. (--w--w--w-), bash will report that its not writable. Larry Original Message: ----------------- Dear Cygnus, My apologies if this is the wrong place for this message. I downloaded the Cygwin package several days ago and am generally please with it (I use the bash shell mostly). There is one thing that baffles me though. In one of my shell scripts I have the line if test -w $file to see if the file is writable before doing processing on the file, but it seems that the result of the test is always 1, i.e. the file is non-writable. The same script runs okay on Unix Bourne shell. Is there something I am doing wrong or is this a bug in test? Thanks for any help. Larry -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com --------------------------------------------------------------------- This message has been posted from Mail2Web (http://www.mail2web.com/) Web Hosting for $9.95 per month! Visit: (http://www.yourhosting.com/) --------------------------------------------------------------------- -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com