9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: John Floren <slawmaster@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] simple question: multiple rename
Date: Thu, 18 Jun 2009 15:54:01 -0700	[thread overview]
Message-ID: <7d3530220906181554o529dbbdbm7861d3acf4f8184c@mail.gmail.com> (raw)
In-Reply-To: <6e2ced74cce329819a96ef2789153425@coraid.com>

On Tue, Jun 16, 2009 at 4:01 PM, erik quanstrom <quanstro@coraid.com> wrote:
>
> > I forgot, / is actually illegal. I'm almost (but not quite) certain that \0 is legal, and if I understand my emacs correctly you may be able to type it as ctrl-space. It displays as ^@ in emacs.
> >
>
> what system call do you use to create a file with \0 in the name?
> i'm not really keeping up, but last i checked creat doesn't take
> a filename length, and therefore the null will terminate the string.
>
> - erik
>

According to intro(5), \0 is illegal in a 9P text string. "The NUL
character is illegal in all text strings in 9P, and is therefore
excluded from file names, user names, and so on." I'm assuming from
this that Thou Shall Not Use NUL In Filenames.


John
--
"I've tried programming Ruby on Rails, following TechCrunch in my RSS
reader, and drinking absinthe. It doesn't work. I'm going back to C,
Hunter S. Thompson, and cheap whiskey." -- Ted Dziuba



  parent reply	other threads:[~2009-06-18 22:54 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-05 19:58 Rudolf Sykora
2009-06-05 20:04 ` Martin Harriss
2009-06-05 20:07   ` Rudolf Sykora
2009-06-08  7:50 ` Rudolf Sykora
2009-06-08  9:35   ` Russ Cox
2009-06-16 11:51     ` roger peppe
2009-06-16 12:00       ` erik quanstrom
2009-06-16 12:43         ` Ethan Grammatikidis
2009-06-16 12:52           ` erik quanstrom
2009-06-16 14:07             ` Russ Cox
2009-06-16 14:40               ` erik quanstrom
2009-06-16 23:00             ` Ethan Grammatikidis
2009-06-16 23:01               ` erik quanstrom
2009-06-17 14:34                 ` Ethan Grammatikidis
2009-06-18 22:54                 ` John Floren [this message]
2009-06-18 22:59                   ` erik quanstrom
2009-06-16 15:48           ` Charles Forsyth
2009-06-16 15:31             ` erik quanstrom
2009-06-16 22:57               ` Ethan Grammatikidis
2009-06-16 15:55           ` john
2009-06-16 17:19             ` Tim Newsham
2009-06-16 23:05             ` Ethan Grammatikidis
2009-06-08  9:45   ` Martin Neubauer
2009-06-08 10:40     ` Rudolf Sykora
2009-06-16 18:34 Francisco J Ballesteros

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=7d3530220906181554o529dbbdbm7861d3acf4f8184c@mail.gmail.com \
    --to=slawmaster@gmail.com \
    --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).