Subject: [Q] [ -w file] not working?
From: [email-masked] (Barry Roberts)

28 Oct 1997 14:39:09 -0800
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain
To: [email-masked]

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
"[email-masked]" with one line of text: "help".