9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Ethan Grammatikidis <eekee57@fastmail.fm>
To: Digby Tarvin <digbyt@acm.org>,
	Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] spaces in filenames (and filesystems...)
Date: Fri, 29 Apr 2011 14:30:11 +0100	[thread overview]
Message-ID: <3B3CAD91-6623-4E25-AB8A-FE1613ACFD83@fastmail.fm> (raw)
In-Reply-To: <20110428121127.GD1020@skaro.cthulhu.dircon.co.uk>


On 28 Apr 2011, at 1:11 pm, Digby Tarvin wrote:

> On Thu, Apr 28, 2011 at 11:58:01AM +0200, Peter A. Cejchan wrote:
>> spaces in filenames.. does not it break the rules?? Who actually
>> needs
>> them??

Well, for one thing it's much more natural to type a space than a
hyphen or an underscore. For another, I for one am not likely to go
through my system renaming the kajillion files I have with spaces in
their names, particularly because I'm not sure what would break if I
did.

>>
>> ++pac
>
> Mostly people who have grown up with graphical user interfaces and
> have no appreciation of the command line parsing complexity it
> adds I think. And of course others that have to interract with
> such people, such as sharing filesystems with them.

I'm surprised nobody's noted that rc handles spaces in filenames with
far less complexity than Bourne shell. Bourne shell makes things
complex by getting all paranoid-obsessive over word-splitting: it
must do it at every possible opportunity unless explicitly commanded
otherwise using a quoting method which also has other effects.

rc is much more sensible, handling spaces transparently in my typical
usage: I pick a unique bit out of the middle of the filename and
surround that with asterisks. rc does not attempt to split the
resultant word whatever you do with it. Perhaps the eval builtin will
split it but not much else will.

Parsing the output of programs which return filenames is the only
common case where I see any complexity from spaces, and then the
complexity only consists of setting and reverting $ifs. Granted that
could be smoother still, especially where you want a big file list in
for().

> On a slightly related topics, one of my constant headaches lately
> is the problem of deciding what filesystem to put on large capacity
> removeable storage to give me maximum interoperability...

Please don't run one topic into another, and please don't use reply
to start a new topic. Some of us rely on threaded view, and some mail
readers organise threads by a hidden In-Reply-To header.



  parent reply	other threads:[~2011-04-29 13:30 UTC|newest]

Thread overview: 160+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-26 18:08 [9fans] spaces in filenames 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-28 12:11             ` [9fans] spaces in filenames (and filesystems...) Digby Tarvin
2011-04-28 12:35               ` [9fans] portable filesystem (was: spaces in filenames (and filesystems...)) dexen deVries
2011-04-28 13:42                 ` [9fans] portable filesystem (was: spaces in filenames (and Richard Miller
2011-04-28 14:00                 ` [9fans] portable filesystem (was: spaces in filenames (and filesystems...)) Digby Tarvin
2011-04-28 14:13                   ` dexen deVries
2011-04-28 15:35                     ` [9fans] portable filesystem smiley
2011-04-28 15:38                     ` [9fans] portable filesystem (was: spaces in filenames (and filesystems...)) Digby Tarvin
2011-04-28 14:18                   ` dexen deVries
2011-04-29 13:30               ` Ethan Grammatikidis [this message]
2011-04-29 14:00                 ` [9fans] spaces in filenames (and filesystems...) erik quanstrom
2011-04-29 15:06                   ` Ethan Grammatikidis
2011-04-29 15:17                     ` erik quanstrom
2011-04-29 19:17                       ` Ethan Grammatikidis
2011-04-30  1:09                         ` erik quanstrom
2011-04-30  2:50                           ` smiley
2011-04-30  2:55                             ` andrey mirtchovski
2011-04-26 18:43 ` [9fans] spaces in filenames erik quanstrom
2011-04-27  2:30   ` smiley
2011-04-27  2:39     ` erik quanstrom
2011-04-28 15:10       ` [9fans] Compiling 9atom kernel WAS: " smiley
2011-04-28 15:30         ` erik quanstrom
2011-04-28 16:16           ` smiley
2011-04-28 16:21             ` erik quanstrom
2011-04-28 17:23               ` smiley
2011-04-28 17:35                 ` andrey mirtchovski
2011-04-28 18:20                   ` ron minnich
2011-04-28 18:50                     ` Brian L. Stuart
2011-04-28 19:19                       ` Jeff Sickel
2011-04-28 19:29                       ` dexen deVries
2011-04-28 19:39                         ` erik quanstrom
2011-04-29  2:00                           ` errno
2011-04-29  3:03                             ` erik quanstrom
2011-04-29  6:11                               ` errno
2011-04-29  6:34                                 ` andrey mirtchovski
2011-04-29  9:18                               ` Charles Forsyth
2011-04-29  9:12                                 ` dexen deVries
2011-04-29  9:44                                   ` Charles Forsyth
2011-04-29  9:44                                   ` tlaronde
2011-04-29  9:54                                     ` dexen deVries
2011-04-29 13:56                                       ` Jeff Sickel
2011-05-05  9:54                                         ` Greg Comeau
2011-05-08 18:27                                           ` tlaronde
2011-05-08 20:51                                             ` Mathieu Lonjaret
2011-05-09 16:54                                               ` tlaronde
2011-05-09 17:10                                                 ` Wes Kussmaul
2011-05-10  8:34                                                   ` hiro
2011-05-10 12:27                                                     ` andrey mirtchovski
2011-05-13  8:40                                                       ` Akshat Kumar
2011-05-13 10:14                                                         ` hiro
2011-05-13 13:30                                                         ` Wes Kussmaul
2011-05-10 13:47                                                     ` Daniel Lyons
2011-05-12 18:40                                                       ` Wes Kussmaul
2011-05-10 17:56                                                     ` Wes Kussmaul
2011-05-12 22:22                                                       ` hiro
2011-05-10 21:47                                                     ` John Floren
2011-05-08 21:34                                             ` Comeau At9Fans
2011-05-09  4:53                                             ` Lucio De Re
2011-04-29  3:11                             ` andrey mirtchovski
2011-04-29  5:27                             ` ron minnich
2011-04-29  9:04                               ` Charles Forsyth
2011-04-29 10:19                                 ` errno
2011-04-29 12:21                                   ` Jacob Todd
2011-04-30  4:05                                     ` errno
2011-04-30  4:22                                       ` errno
2011-04-30  6:26                                       ` Anthony Sorace
2011-04-30  8:16                                         ` errno
2011-04-30  8:25                                           ` Steve Simon
2011-04-30  9:48                                             ` errno
2011-05-05  9:55                                             ` Greg Comeau
2011-04-30 12:18                                           ` Ethan Grammatikidis
2011-04-30 22:21                                           ` smiley
2011-04-30 23:20                                             ` errno
2011-04-30 23:33                                               ` Lyndon Nerenberg
2011-05-01  0:12                                                 ` errno
2011-05-01  0:16                                                   ` Lyndon Nerenberg
2011-05-01 23:56                                           ` blstuart
2011-05-02  0:00                                             ` erik quanstrom
2011-05-02  1:42                                             ` errno
2011-05-02  1:44                                               ` erik quanstrom
2011-05-02  2:29                                                 ` errno
2011-05-02  2:38                                                   ` erik quanstrom
2011-05-02  3:11                                                     ` errno
2011-05-02  3:15                                                       ` erik quanstrom
2011-05-02  4:09                                                         ` errno
2011-05-02  3:39                                                       ` ron minnich
2011-05-02  4:05                                                         ` Steve Simon
2011-05-02 10:38                                                   ` Salman Aljammaz
2011-05-02 11:46                                                     ` errno
2011-05-02 16:29                                                       ` Charles Forsyth
2011-05-02 16:48                                                         ` dexen deVries
2011-05-02 11:51                                                     ` Charles Forsyth
2011-05-02 13:54                                           ` Jack Norton
2011-05-02 14:45                                             ` Anthony Sorace
2011-05-02 16:16                                             ` Charles Forsyth
2011-05-05 12:33                                           ` Greg Comeau
2011-05-05 12:48                                             ` erik quanstrom
2011-05-06  4:23                                             ` Lucio De Re
2011-05-06  4:35                                               ` ron minnich
2011-05-06  6:45                                                 ` errno
2011-05-06  7:08                                                   ` ron minnich
2011-05-06  7:35                                                     ` errno
2011-05-06 15:45                                                     ` Bakul Shah
2011-05-06 15:59                                                       ` John Floren
2011-05-06 16:47                                                         ` Bakul Shah
2011-05-06 16:11                                                       ` tlaronde
2011-05-06 12:07                                                   ` Lucio De Re
2011-05-06 16:07                                                     ` [9fans] freedom (was Re: Compiling 9atom kernel) errno
2011-05-06 16:29                                                       ` Jack Norton
2011-05-06 17:38                                                         ` errno
2011-05-07  0:06                                                       ` errno
2011-05-07  5:01                                                       ` Lucio De Re
2011-05-07  7:36                                                         ` Daniel Lyons
2011-05-16 15:02                                                         ` Steve Simon
2011-05-06  7:08                                                 ` [9fans] Compiling 9atom kernel WAS: Re: spaces in filenames errno
2011-05-06  7:11                                                   ` ron minnich
2011-05-06 12:59                                                   ` erik quanstrom
2011-05-06 16:06                                                     ` errno
2011-05-06 17:30                                                       ` erik quanstrom
2011-05-06 22:32                                                     ` Comeau At9Fans
2011-05-06 22:57                                                       ` andrey mirtchovski
2011-05-06 23:18                                                       ` errno
2011-05-06 23:49                                                         ` Comeau At9Fans
2011-05-06 23:47                                                       ` errno
2011-05-06 23:56                                                         ` Comeau At9Fans
2011-05-07  0:22                                                           ` errno
2011-05-07  0:12                                                         ` Lyndon Nerenberg
2011-05-07  0:43                                                           ` errno
2011-05-06 13:15                                                 ` erik quanstrom
2011-04-30 22:34                                         ` smiley
2011-04-30 22:45                                           ` Lyndon Nerenberg
2011-05-01  6:54                                             ` dexen deVries
2011-05-05 12:33                                           ` Greg Comeau
2011-05-05 12:54                                             ` andrey mirtchovski
2011-05-05 20:30                                               ` Gorka Guardiola
2011-05-05 21:22                                                 ` Iruatã Souza
2011-05-06  5:20                                                   ` Skip Tavakkolian
2011-05-06  7:02                                                     ` Gorka Guardiola
2011-05-06  7:06                                                     ` errno
2011-05-05  9:55                                       ` Greg Comeau
2011-05-04 11:40                                     ` Greg Comeau
2011-04-29 12:32                                   ` erik quanstrom
2011-04-29 18:39                                   ` Iruatã Souza
2011-04-29  6:06                             ` Bakul Shah
2011-04-28 20:50                         ` Anthony Sorace
2011-05-04 11:40                       ` Balwinder S Dheeman
2011-05-04 11:56                         ` erik quanstrom
2011-04-28 18:33                 ` erik quanstrom
2011-04-29  4:31                   ` smiley
2011-04-29  4:35                     ` erik quanstrom
2011-04-28 19:27                 ` Charles Forsyth

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=3B3CAD91-6623-4E25-AB8A-FE1613ACFD83@fastmail.fm \
    --to=eekee57@fastmail.fm \
    --cc=9fans@9fans.net \
    --cc=digbyt@acm.org \
    /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).