From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phil Carmody Newsgroups: gmane.emacs.help Subject: Re: (emacs+unix): How to have a file-name containing slashes, angle-brackets, etc? Date: Mon, 25 Aug 2008 16:08:25 +0300 Organization: Saunalahti Customer Message-ID: <87hc99gs3a.fsf@nonospaz.fatphil.org> References: <9e31b345-4cec-4ea6-8d63-d66b8355da06@p10g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1219671679 6340 80.91.229.12 (25 Aug 2008 13:41:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2008 13:41:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 25 15:42:04 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KXcKA-0007bX-EZ for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Aug 2008 15:41:38 +0200 Original-Received: from localhost ([127.0.0.1]:34518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXcJC-0004lH-42 for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Aug 2008 09:40:38 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!news.glorb.com!feeder1.news.saunalahti.fi!reader1.news.saunalahti.fi!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:wBJwZhBWd67WgbHl3+JH87TeVHA= Original-Lines: 51 Original-NNTP-Posting-Host: 83.143.57.195 Original-X-Complaints-To: newsmaster@saunalahti.com Original-X-Trace: reader1.news.saunalahti.fi 1219669739 83.143.57.195 (Mon, 25 Aug 2008 16:08:59 EEST) Original-NNTP-Posting-Date: Mon, 25 Aug 2008 16:08:59 EEST Original-Xref: news.stanford.edu gnu.emacs.help:161615 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56958 Archived-At: David Hansen writes: > On Sun, 24 Aug 2008 12:12:38 -0700 (PDT) Xah wrote: > >> On Aug 24, 5:31 am, Nikolaj Schumacher wrote: >>> Xah 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 >> “_”. I have to burst in here and simply state that I think that's possibly the single least correct statement I've seen on this newsgroup ever. >>As a contrast for comparison, Mac's file names often contain >> punctuations such as “,$#!*()” and space, but also allows non-ascii >> such as > > In the early days of napster (around 2000) I downloaded an Asian pop > song with a beep (^G) in the filename. That was on GNU/Linux. Yes, > when I typed `ls' the xterm beeped. Most linux setups I've seen have had ls sanitise its output and filter out control characters. To examine what was filtered, you could use ls -b to have them escaped instead. > I think at least the Linux kernel never gave a f*** about the characters > as long as it was no '/' or \0. Though it wasn't that easy to rename > the files in this directory. You think right. Xah perhaps doesn't know the difference between an OS and a shell? If in doubt, simply prefix filenames with './'. That declaws practically everything. Phil -- The fact that a believer is happier than a sceptic is no more to the point than the fact that a drunken man is happier than a sober one. The happiness of credulity is a cheap and dangerous quality. -- George Bernard Shaw (1856-1950), Preface to Androcles and the Lion