[7434] in Athena Bugs

home help back first fref pref prev next nref lref last post

vax 7.2R: /bin/test

daemon@ATHENA.MIT.EDU (jud@ATHENA.MIT.EDU)
Wed Apr 17 19:10:43 1991

From: jud@ATHENA.MIT.EDU
To: bugs@ATHENA.MIT.EDU
Date: Wed, 17 Apr 91 17:02:24 EDT

System name:		ithake
Type and version:	MVAX-II 7.2R (1 update(s) to same version)
Display type:		PLX

What were you trying to do?
	[Please replace this line with your information.]
	In the Bourne shell, /bin/test -w dir won't report whether
a directory is writable.  Repeat by
	athena% sh
	$ if [ -w $HOME ]
	> then echo I can write my home directory.
	> else echo I can not write my home directory.
	> fi
	I can not write my home directory.
	$

What's wrong:
	[Please replace this line with your information.]

What should have happened:
	[Please replace this line with your information.]

	The command should return "I can write my home directory"
according to the man page.  The problem is due to an appalling hack
in the BSD code.  test uses open rather than stat to check permission.

Please describe any relevant documentation references:
	[Please replace this line with your information.]


Jud Harward

home help back first fref pref prev next nref lref last post