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: Sun, 24 Aug 2008 12:12:38 -0700 (PDT) [thread overview]
Message-ID: <dc242d4a-2b83-4e98-8129-d030c6edfd93@n33g2000pri.googlegroups.com> (raw)
In-Reply-To: mailman.17461.1219581096.18990.help-gnu-emacs@gnu.org
On Aug 24, 5:31 am, Nikolaj Schumacher <m...@nschum.de> wrote:
> Xah<xah...@gmail.com> wrote:
> > Unix is the worst, they pretty much just allow
> > alphanumerics and not even space. If you have anything like “,=();
> > \'"~&-” etc, you can expect most shell tools to erase you disk)
>
> Actually unix systems allow pretty much every character except / and the
> null character.
To say that unix allows much wider chars in file names is like saying
mud is the best medium for sculpture.
Unix file names, for much of its history up to perhaps mid 2000s,
effectively just allows alphanumerics plus hyphen “-” and underscore
“_”. As a contrast for comparison, Mac's file names often contain
punctuations such as “,$#!*()” and space, but also allows non-ascii
such as
euro lang chars çö
printer's symbols †‡°
euro lang puncs «»¡
math ≈∫µ∂ƒπ≠≤≥∞
special symbols ™®©£¢
etc since the early 1990 or before.
ascii punctuations chars and non-ascii chars such as above are also
allowed in filenames in Windows since about Microsoft Windows NT in
late 1990s or earlier. Tools in MacOS (such as AppleScript) and
Windows, support, expect, these chars in file names.
Sure, you can use many non-alphanumeric chars besides hyphen and
underscore in unix, but the system is simply not designed for it.
Majority of unix tools, including file name listing, will chock and
break if your filename contain these chars. The chocking doesn't
actually give you a nice error message, but silently break and often
resulting in unexpected and unpredicable behavior. In short, it's just
not designed for it.
Issues like these often perpetuate the myth that unix is “powerful”,
but in fact it's just raw and no-design.
I wrote a essay describing this situation... here:
The Nature of the “Unix Philosophy”
http://xahlee.org/UnixResource_dir/writ/unix_phil.html
plain text version follows:
---------------------------
The Nature of the “Unix Philosophy”
Xah Lee, 2006-05
In the computing industry, especially among unix community, we often
hear that there's a “Unix Philosophy”. In this essay, i dissect the
nature and characterization of such “unix philosophy”, as have been
described by Brian Kernighan, Rob Pike, Dennis Ritchie, Ken Thompson,
and Richard P Gabriel et al, and in recent years by Eric Raymond.
There is no one definite set of priciples that is the so-called “unix
philosophy”, but rather, it consistest of various slogans developed
over the decades by unix programers that purport to describe the way
unix is supposed to have been designed. The characteristics include:
“keep it simple”, “make it fast”, “keep it small”, “make it work on
99% of cases, but generality and correctness are less important”,
“diversity rules”, “User interface is not important, raw power is
good”, “everything should be a file”, “architecture is less important
than immediate workability”. Often, these are expressed by chantible
slogans that exhibits juvenile humor, such as “small is beautiful”,
“KISS (Keep It Simple, Stupid)”.
Suppose, we take a team of student programers to produce a large
software system. When the software is done, give it to software
critics to analyze and come up with some principles that characterize
its design decisions, without disclosing the nature of the programers.
The characterization of such software, will more or less fit the
descriptions of the “Unix Philosophy” as described in different ways
by various unix celebrities.
For example, it would focus on implementation simplicity as opposed to
interface simplicity. It will not be consistent in user interface, but
exhibits rawness. It would be correct only for most cases, as opposed
to mathematically correct or generic. It would employ simplistic data
structures and formats such as text-files with rows of lines and space
separated columns, as opposed to a structured system or binary format
that requires a spec. It would be speedy, but less on scalability. It
would consists of many small programs, as opposed to one large system
with inter-dependent components. It would be easy to patch and port,
but difficult to upgrade its structure or adapt entirely new
assumptions.
The essence of this theory is that when a software is produced for
real world use, it is necessary that it works in some acceptable way,
otherwise the software will be continuously debugged and refined. A
software system written by a bunch of student or otherwise under-
educated programers, but refined long enough for acceptably practical,
real world use, will necessarily develop characteristics that is known
as the Unix Philosophy.
Xah
∑ http://xahlee.org/
☄
next prev parent reply other threads:[~2008-08-24 19:12 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 [this message]
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
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=dc242d4a-2b83-4e98-8129-d030c6edfd93@n33g2000pri.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.