9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "James A. Robinson" <jimr@highwire.stanford.edu>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] reading addr always returns #0,#0?
Date: Sat, 31 Aug 2013 10:29:31 -0700	[thread overview]
Message-ID: <CAPd04b6bQSUHKMsMrdhieJfYGTzEQdLn9Pje5wEsuojfiBT9sQ@mail.gmail.com> (raw)
In-Reply-To: <CAPd04b6STJ-uzv_XJixzH6zdr0hw0aJbtP9WNMYP9uif3jEfxw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 572 bytes --]

On Sat, Aug 31, 2013 at 10:23 AM, James A. Robinson <
jimr@highwire.stanford.edu> wrote:

> I see the entire text of the window get selected.
> I had assumed that if I then read addr that I would
> get back two numbers, 0 and the final byte offset
> of the file (it is a non-zero length file).
>
> However, I get back two zeros:
>
> $ 9p read acme/2/addr
>           0           0
>
> What am I missing?
>

I should have said character offset, not byte offset.
I was also experimenting with using addr=dot, but
didn't see any change in behavior.

Jim

[-- Attachment #2: Type: text/html, Size: 1152 bytes --]

  reply	other threads:[~2013-08-31 17:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-31 17:23 James A. Robinson
2013-08-31 17:29 ` James A. Robinson [this message]
2013-09-02 10:13   ` Alexander Sychev
2013-09-02 10:38     ` dexen deVries
2013-09-02 15:25       ` James A. Robinson

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=CAPd04b6bQSUHKMsMrdhieJfYGTzEQdLn9Pje5wEsuojfiBT9sQ@mail.gmail.com \
    --to=jimr@highwire.stanford.edu \
    --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).