delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/10/09/01:09:37

From: lri AT wag DOT ch (Laurent Ricci)
Subject: Bash: <test -w file> = true for a read-only file !!!
9 Oct 1998 01:09:37 -0700 :
Message-ID: <361CCC14.E53684FC.cygnus.gnu-win32@wag.ch>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Hi B19 developers,

The test -w doesn't work on windows and unix files !!!

If I perform the following statement on a read-only file 
MyReadOnlyFile, the result is <Is writable> !!!

    if [-w MyReadOnlyFile ]
    then
        echo "Is writable"
    else
        echo "Is readonly"
    fi


My gnu-win32 beta release is:
uname -a : CYGWIN32_NT GLOBBY10 4.0 19.1 i686 unknown

Thanks for help or for patch...

bye

---

Laurent Ricci
Workstation ag
tel: ++(41 21) 925 88 37
fax: ++(41 21) 925 88 01
e-mail: lri AT wag DOT ch
-
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".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019