From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 25 May 2012 00:41:04 -0400 To: 9fans@9fans.net Message-ID: <1faa135a13d02ff24a95860708ac3f3f@kw.quanstro.net> In-Reply-To: <8363bf9b7069565c35a5d9c65953e079@rei2.9hal> References: <8363bf9b7069565c35a5d9c65953e079@rei2.9hal> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] test -w on directory Topicbox-Message-UUID: 954d5466-ead7-11e9-9d60-3106f5b1d025 > some rc scripts seem to assume that test -w should work on > directories. examples are /rc/bin/lp which tests for /tmp > being writable. another is /rc/bin/juke that tests on > /mnt/juke. in both cases, the test returning the wrong result won't easily be noticed. lp just mounts somthing else on /tmp on failure, and juke restarts/remounts whatever. i'm not sure anyone has noticed. by the way, i notice juke has this gem: kb=4096 say what!? fittingly, it's unused. - erik