delorie.com/archives/browse.cgi | search |
From: | blroberts AT xactware DOT com (Barry Roberts) |
Subject: | [Q] [ -w file] not working? |
28 Oct 1997 14:39:09 -0800 : | |
Message-ID: | <s455d8fd.064.cygnus.gnu-win32@gatekeeper.xactware.com> |
Mime-Version: | 1.0 |
To: | gnu-win32 AT cygnus DOT com |
The following script: if [ -w $1 ] then echo Writable else echo Read-Only fi ALWAYS echo's 'Read-Only' If I use find.exe to do the same type of thing, it seems to work. This works as I expect under zsh. Am I doing something wrong? Barry Roberts ! - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |