From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <6e2ced74cce329819a96ef2789153425@coraid.com> References: <20090616134331.e7114d5e.eekee57@fastmail.fm> <20090617000046.0e739935.eekee57@fastmail.fm> <6e2ced74cce329819a96ef2789153425@coraid.com> Date: Thu, 18 Jun 2009 15:54:01 -0700 Message-ID: <7d3530220906181554o529dbbdbm7861d3acf4f8184c@mail.gmail.com> From: John Floren To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [9fans] simple question: multiple rename Topicbox-Message-UUID: 0cec5b6e-ead5-11e9-9d60-3106f5b1d025 On Tue, Jun 16, 2009 at 4:01 PM, erik quanstrom 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