all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: (emacs+unix): How to have a file-name containing slashes,  angle-brackets, etc?
Date: Tue, 26 Aug 2008 14:54:44 -0700 (PDT)	[thread overview]
Message-ID: <e3e06142-4bbd-49fd-bccc-4260d5e1497c@o40g2000prn.googlegroups.com> (raw)
In-Reply-To: mailman.17618.1219783235.18990.help-gnu-emacs@gnu.org

On Aug 26, 1:40 pm, Nikolaj Schumacher <m...@nschum.de> wrote:
> Xah<xah...@gmail.com> wrote:
> >> The question is whether unix is, by design, capable of handling
> >> characters outside the alphanumerical range.
>
> > a piss pot can technically hold any liquid other than piss, but it
> > does not mean it is suitable as a, say, coffee mug.
>
> > one way to see this is to check exactly how many people uses piss bots
> > for coffee mug.
>
> You keep answering with metaphors.
>
> What is broken or unpractical about "special" characters in unix file
> names that works in other operating systems?

The issue in this thread we are currently debating is whether unix
support file names with non-alphanumeric chars and non-ascii chars.

I hope you agree the above is a good description of what we may be
debating. The issue is not, for example: “whether you can use char x
in a file name under a unix file system y”.

So, what does “support” mean here? Support doesn't mean whether a file
system allow certain chars in question. Support means users of that
system can use these chars in file name easily, as easy as any
alphanumeric chars. (Any brainless file system will support every
sequence of binary code as file name. Only if thought are put into it,
then it will actually reject certain chars as disallowed. The more
brainless, the less chars it'll reject, as in most unix's file
systems)

My argument is that, unix for much of its history up to perhaps mid
2000s when linux desktop becomes popular, does not support it. One
practical way to see why it doesn't support it is because people
simply don't use it. In fact, if i recall correctly, it is pretty
common, to see advices and FAQs in unix forums or books, that
recommend users to stick with alphanumerics plus “_” and “.” for file
names and almost nothing else. (i'll have to spend a few hours to dig
up the actual unix book titles, or find many posts, decades old unix
FAQs, that give these recommendations.)

Why unix doesn't support these chars? There are many factors. For one
thing, unix shell tools is one bag of inconsistency that their quoting
mechanism differs. In practicace, people use these mismash of tools to
work in unix, and if your file name contain odd chars, these tools
will break and break in bad ways. Basically, if your file names
contain odd chars, it make your life hell.

Also, unix is typically used over telnet/ssh. Telnet doesn't not
support non-ascii chars thru much of its history... and
implementations vary wildly in quality... the bottom line is that if
your file names contain odd chars, you'll have problem using telnet to
work with them.

It will take days to quote you the exact man page, or old man page
used in 1990s, on all these issues, on what tool support what escape
mechanism... or what tools will simply chock regardless what you
escape or quote the file name etc. If you have experience in unix in
say 1990s, you know as a fact that unix just don't support “odd”
chars. (odd here means basically anyting other than [A-z0-9], “.”,
“_”, “-”, “ ”)

then, as someone else mention, there's non-printable ascii issues.
Unix allows a bell ring in file names! so thoughtful. Doing a file
listing wing “bing” and “bong”! and if you inadventaly have ohter
control chars in file name, expect your screen to be filled with
majibake.

this is quickly written... i hope it convinces you.

btw, who are you? what's your background anyway?

  Xah
∑ http://xahlee.org/

  parent reply	other threads:[~2008-08-26 21:54 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-15 22:38 (emacs+unix): How to have a file-name containing slashes, angle-brackets, etc? David Combs
2008-08-16 18:41 ` The Badger
     [not found] ` <mailman.16876.1218850883.18990.help-gnu-emacs@gnu.org>
2008-08-23 21:57   ` David Combs
2008-08-23 22:48     ` Lennart Borgman (gmail)
2008-08-23 22:21 ` Xah
2008-08-24 12:31   ` Nikolaj Schumacher
     [not found]   ` <mailman.17461.1219581096.18990.help-gnu-emacs@gnu.org>
2008-08-24 19:12     ` Xah
2008-08-25  0:02       ` David Hansen
2008-08-25  6:12       ` David Kastrup
2008-08-25  9:03         ` Xah
     [not found]       ` <mailman.17478.1219622906.18990.help-gnu-emacs@gnu.org>
2008-08-25 13:08         ` Phil Carmody
2008-08-25 20:13       ` Nikolaj Schumacher
     [not found]       ` <mailman.17519.1219695209.18990.help-gnu-emacs@gnu.org>
2008-08-26  8:42         ` Xah
2008-08-26 15:02           ` Nikolaj Schumacher
     [not found]           ` <mailman.17589.1219762958.18990.help-gnu-emacs@gnu.org>
2008-08-26 17:03             ` Xah
2008-08-26 20:40               ` Nikolaj Schumacher
     [not found]               ` <mailman.17618.1219783235.18990.help-gnu-emacs@gnu.org>
2008-08-26 21:54                 ` Xah [this message]
2008-08-27 11:58                   ` Bernardo Bacic
2008-08-27 14:05                   ` Nikolaj Schumacher
     [not found]                   ` <mailman.17666.1219838494.18990.help-gnu-emacs@gnu.org>
2008-08-27 17:10                     ` Xah
     [not found]                   ` <mailman.17676.1219845916.18990.help-gnu-emacs@gnu.org>
2008-08-27 17:34                     ` Xah
2008-08-27 19:50                       ` Cor Gest
2008-08-28  9:42                       ` Nikolaj Schumacher
     [not found]                       ` <mailman.17742.1219916570.18990.help-gnu-emacs@gnu.org>
2008-08-28 10:13                         ` Xah
2008-08-28 10:49                           ` Lennart Borgman (gmail)
2008-08-28 13:29                           ` Nikolaj Schumacher
     [not found]                           ` <mailman.17755.1219930152.18990.help-gnu-emacs@gnu.org>
2008-08-29  2:23                             ` Xah

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=e3e06142-4bbd-49fd-bccc-4260d5e1497c@o40g2000prn.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.