9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] test -w on directory
Date: Fri, 25 May 2012 00:41:04 -0400	[thread overview]
Message-ID: <1faa135a13d02ff24a95860708ac3f3f@kw.quanstro.net> (raw)
In-Reply-To: <8363bf9b7069565c35a5d9c65953e079@rei2.9hal>

> 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



  reply	other threads:[~2012-05-25  4:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-25  4:07 cinap_lenrek
2012-05-25  4:41 ` erik quanstrom [this message]
2012-05-25  8:48   ` Charles Forsyth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1faa135a13d02ff24a95860708ac3f3f@kw.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).