9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Michael Baldwin <m@orb.sh>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] spaces in filenames
Date: Sat,  1 Jun 2002 09:41:31 -0400	[thread overview]
Message-ID: <48288ED5-7565-11D6-A7FB-000393726A14@orb.sh> (raw)
In-Reply-To: <98980baaa19b1da58bf31a8435a4b978@collyer.net>

> On Unix, part of the problem is scripts that use $* when they should
> use "$@"

yeah, so fix them, if it's so easy.  are there lots of these around?  i
haven't noticed.

> but the need to quote file names containing spaces interactively is an
> on-going nuisance.

i guess if you think 'quoting' is a nuisance.  yes, you have to quote
spaces in shell args.  i also have to quote '=' in rc args, and i have
to quote ( ) { } * ? and a bunch of other characters.  so what?

> If you're going to allow spaces, then why not allow tabs? ... why not
> newline ... why discriminate against NUL ...

because filenames are supposed to be printable "labels" for things.
tabs are control characters to adjust the "carriage", like CR and NL
are.  NUL is a control character.  space is just a space, and is thought
of as printable.  putting spaces in labels is not a radical idea.  ever
label a paper folder "Mom's recipes"?  i don't feel obligated to put an
underscore in there instead.  and let me tell you, her stuffed peppers
are to die for.

and i've already said it is very useful to have characters that are
guaranteed to be useful as separators.  slashes are used for pathname
element separation, and for the same reason, it seems a good idea to
have a character that always works as an element separator.

so stop confusing the issue.  i'm talking about space.  JUST SPACE.  not
tab, newline, nul, or slash.  i have ALREADY given my reasons for not
allowing those (they are non-printable, and it is good to have reliable
separators).  this is about SPACE ONLY.  the only reason you've given to
hate spaces is shell sloppiness.  we even have the nice new quoted
string functions if you want to use them.

> We could also adopt another Mac OS tradition, case-insensitive file
> names.

this is more questionable.  but in the case of inferno, which has to
live on top of these other systems (windoze does this too), one cannot
simply ignore it.  "mv A a" on inferno used to delete your poor file "A"
instead of move it.  oops.  and i notice that the shell(s) in mac os x
are case-sensitive when using glob matching.

> Pretty soon our file names will be as ungodly a stew as anything ever
> parsed by MVS or VMS.

oh please.  allowing the use of space somehow makes filenames a stew?
give me a break.



  reply	other threads:[~2002-06-01 13:41 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-01  5:02 Geoff Collyer
2002-06-01 13:41 ` Michael Baldwin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-04-26 18:08 smiley
2011-04-26 18:42 ` Rob Pike
2011-04-26 18:44   ` erik quanstrom
2011-04-26 18:52   ` dexen deVries
2011-04-26 19:31     ` Rob Pike
2011-04-26 19:35       ` Paul Lalonde
2011-04-27 13:10       ` Digby Tarvin
2011-04-27 13:16         ` erik quanstrom
2011-04-27 13:21         ` Steve Simon
2011-04-28  9:58           ` Peter A. Cejchan
2011-04-26 18:43 ` erik quanstrom
2011-04-27  2:30   ` smiley
2011-04-27  2:39     ` erik quanstrom
2002-06-03 12:42 presotto
2002-06-01 22:17 Russ Cox
2002-06-01 22:25 ` William Josephson
2002-06-03 10:06 ` Axel Belinfante
2002-06-01 22:16 Russ Cox
2002-06-01 14:55 Richard Miller
2002-06-01 14:16 Russ Cox
2002-06-01 14:15 Russ Cox
2002-06-01 14:10 Russ Cox
2002-06-01 14:38 ` William Josephson
2002-06-01 14:01 Russ Cox
2002-06-01 13:55 Richard Miller
2002-06-01 14:05 ` William Josephson
2002-06-01 13:15   ` Sam
2002-06-01 13:46 Russ Cox
2002-06-01  3:35 Michael Baldwin
2002-06-01 16:54 ` Digby Tarvin

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=48288ED5-7565-11D6-A7FB-000393726A14@orb.sh \
    --to=m@orb.sh \
    --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).