From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: The Badger Newsgroups: gmane.emacs.help Subject: Re: (emacs+unix): How to have a file-name containing slashes, angle-brackets, etc? Date: Sat, 16 Aug 2008 11:41:39 -0700 Message-ID: <48A71F63.3090608@example.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218850910 29729 80.91.229.12 (16 Aug 2008 01:41:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Aug 2008 01:41:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: David Combs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 16 03:42:41 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 1KUAoR-0003Hf-4P for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Aug 2008 03:42:39 +0200 Original-Received: from localhost ([127.0.0.1]:41367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUAnU-00033T-Ia for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 21:41:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KUAnB-00030U-Jk for help-gnu-emacs@gnu.org; Fri, 15 Aug 2008 21:41:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KUAnA-0002zT-R1 for help-gnu-emacs@gnu.org; Fri, 15 Aug 2008 21:41:21 -0400 Original-Received: from [199.232.76.173] (port=40366 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUAnA-0002zF-Lw for help-gnu-emacs@gnu.org; Fri, 15 Aug 2008 21:41:20 -0400 Original-Received: from bld-mail09.adl2.internode.on.net ([203.16.214.73]:47714 helo=mail.internode.on.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KUAnA-0008IW-2n for help-gnu-emacs@gnu.org; Fri, 15 Aug 2008 21:41:20 -0400 Original-Received: from [192.168.4.105] (unverified [59.167.83.3]) by mail.internode.on.net (SurgeMail 3.8f2) with ESMTP id 39496093-1927428 for multiple; Sat, 16 Aug 2008 11:11:06 +0930 (CST) User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:56694 Archived-At: Hello David, Just a thought: Trying to encode the path of the remote file into the filename after downloading seems weird. Why not just re-create the folder structure? For example, if you download http://www.aaa.com/~john/foo-txt.htm then you would have the following file on your disk: /home/david/my web downloads/www.aaa.com/~john/foo.txt Isn't that what pretty much what `wget', or any other web downloader tool would do? David Combs wrote: > I'm downloading files of names like: > > > http://www.aaa.com/~john/foo-txt.htm > > Now, when I do this in a browser (I use lynx (shell-account)) > the default name to store it under is foo-txt.htm. > > Years later, what I'll want to know is exactly where it came from, ie > I'd like the filename to depict the entire url. > > > Like this, perhaps? > > http://www.aaa.com/~john/foo-txt.htm > > Nope, because regardless of what the computer will > make of it, it'll confuse *me* -- not knowing whether > those slashes represent dir-separators within *my* computer, > or in some far-away (maybe long dead) server. > > > Hmmm. Maybe "---" for "/"? > > What about ":"? > > And what about "~"? > > Plus other chars I've not thought of? > > > > > Making it even longer, if the *title* of the report in > the file is "10 easy editing tips", and I want that reflected > in the name too. > > > Like 10-easy-editing-tips---httpwww.aaa.com... (you > get the idea). > > > And, whatever we decide on, another question comes up -- how to ENTER > that NAME into the computer -- both in emacs (dired) and in, say, tcsh. > > What, iva C-Q for emacs and ^V in unix. > > Suggestions? > > > Thanks! > > > David > > > P.S.: Oh, I forgot. tar shouldn't barf on the name. > > > >