delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/17/05:28:11

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 17 Nov 2011 11:27:24 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: filename with HASH
Message-ID: <20111117102724.GB17717@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <32858658 DOT post AT talk DOT nabble DOT com> <32858723 DOT post AT talk DOT nabble DOT com> <4EC4DA4E DOT 60303 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <4EC4DA4E.60303@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Nov 17 09:56, Dave Korn wrote:
> On 17/11/2011 00:29, pen wrote:
> > Few more tests: seems lynx dont like #
> > 
> > $ mv "test bay#, wwid" "test # abc"
> > $ lynx -dump "test # abc"
> > 
> > Can't Access `file://localhost/cygdrive/e/test%20#%20abc'
> > Alert!: Unable to access document.
> > 
> > lynx: Can't access startfile
> > 
> > $ mv  "test # abc" "test# a"
> > $ lynx -dump "test# a"
> > 
> > Looking up test
> > Making HTTP connection to test
> > Alert!: Unable to connect to remote host.  <<
> > 
> > lynx: Can't access startfile http://test/#%20a
> 
>   A "#" marks a separator in a URL between the URI part and the anchor within
> the page to load up the display at.  I think lynx is applying the same syntax
> to local file URLs; for example, if you have a local file "index.html", you
> can append any arbitrary # anchor to it:

Apart from that, all non-graphical characters in an URL are converted to
the %xx syntax.  Therefore, the URL "test # abc" is converted to
"file://[$PWD]/test%20#%20abc" *before* trying to find the file.  So
lynx tries to access the file "test%20#%20abc" in the current directory,
which obviously doesn't exist.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019