delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/07/21:17:34

From: kevinb AT acceleratednetworks DOT com (Kevin 'No, the -other- one' Bailey)
Subject: -w test fails
7 Jan 1999 21:17:34 -0800 :
Message-ID: <369569B0.159D6F54.cygnus.gnu-win32@acceleratednetworks.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Hi all,

I've got to be doing something wrong:

~> touch testfile
~> ls -l testfile
-rw-r--r--   1 0        Everyone        0 Jan  7 17:50 testfile
~> if [ -w testfile ] ; then echo "WRITEABLE"; else echo "READONLY"; fi
READONLY
~> grep kevinb /etc/passwd
kevinb::1238:513:Kevin Bailey://server/users/kevinb:/bin/sh
~> grep Everyone /etc/group
Everyone::0:
~> umask
000
~> type test
test is a shell builtin

Any ideas why -w fails ?  I suspect its something in the /etc
files or my umask but its beyond me.

All other tests that I've tried work (readable, executable, ...)

I'm using bash under B20.1 if that helps.

Thanks,
krb
-
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