9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rsc@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] spaces in file/dir names? (and acme)?
Date: Thu, 30 May 2002 12:30:53 -0400	[thread overview]
Message-ID: <3ca77c62df7c1f26a1601d02c632efde@plan9.bell-labs.com> (raw)

> Can acme not deal with spaces in file names?

No.  Most of the system doesn't deal well
with spaces in file names.

> When I tried creating files (touch) and directories (mkdir)
> with names containing spaces on kfs and on fake worm fs,
> that was refused with an error message 'bad character in ... name'.

That's because you don't want to do that.  Really.

> However, intro(5) states
>
>     Plan 9 names may contain any printable character (that is, any
>     character outside hexadecimal 00-1F and 80-9F) except slash.)

The Plan 9 kernel is being discussed there.  Other file servers
may impose their own restrictions.  For example, you can't put
a colon in a dossrv file name.

> But /sys/src/fs/port/9p2.c:155 contains
>
>                 if((*p & 0xFF) <= 040)
>                         return Ename;
>
> and /sys/src/fs/port/sub.c and /sys/src/cmd/disk/kfs/^(9p2.c sub.c)
> contain similar checks.

And, at the moment, you can't put spaces in Plan 9 file server
file names.

Everything starts to break when you deal with spaces
in file names.  Ls -q and various other hacks start to
deal with it, but we're not there yet.  I was tempted a few
years ago to replace spaces with ␣ in dossrv's file names.
We couldn't do that then because of the name length
restrictions (␣ is three precious bytes).

Russ



             reply	other threads:[~2002-05-30 16:30 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-30 16:30 rsc [this message]
2002-05-30 16:35 ` Axel Belinfante
2002-06-05  9:54 ` Douglas A. Gwyn
  -- strict thread matches above, loose matches on Subject: below --
2002-06-06 10:29 Fco.J.Ballesteros
2002-06-06 10:48 ` Axel Belinfante
2002-06-06  8:11 Fco.J.Ballesteros
2002-06-06 10:22 ` Axel Belinfante
2002-06-05 18:39 Geoff Collyer
2002-06-05 17:55 rog
2002-06-05 17:04 anothy
2002-06-05 13:46 Russ Cox
2002-06-03  7:48 Fco.J.Ballesteros
2002-06-03 16:05 ` Dan Cross
2002-06-05 10:05   ` Douglas A. Gwyn
2002-06-01 21:37 jmk
2002-06-01 22:06 ` Dan Cross
2002-05-30 22:01 forsyth
2002-05-30 20:16 rog
2002-05-30 20:14 rsc
2002-05-30 19:29 rog
2002-05-30 19:12 forsyth
2002-05-30 18:58 rog
2002-05-30 18:55 rsc
2002-05-30 18:16 rog
2002-06-04 16:23 ` Axel Belinfante
2002-05-30 18:15 rsc
2002-05-30 18:13 Geoff Collyer
2002-05-31  4:53 ` Lucio De Re
2002-05-31  8:59   ` Boyd Roberts
2002-05-30 18:09 Sape Mullender
2002-05-30 17:58 Fco.J.Ballesteros
2002-05-30 17:10 ` Sam
2002-05-30 17:52 presotto
2002-05-30 17:46 Geoff Collyer
2002-05-30 17:00 Fco.J.Ballesteros
2002-06-01 21:34 ` Dan Cross
2002-05-30 16:57 Fco.J.Ballesteros
2002-05-30 17:03 ` Lucio De Re
2002-06-05  9:55   ` Douglas A. Gwyn
2002-05-30 16:30 rsc
2002-05-30 16:21 Axel Belinfante
2002-05-30 16:27 ` Boyd Roberts

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=3ca77c62df7c1f26a1601d02c632efde@plan9.bell-labs.com \
    --to=rsc@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /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).