Go to the FreeLists Home Page Home Signup Help Login
 



[arachne] || [Date Prev] [04-2007 Date Index] [Date Next] || [Thread Prev] [04-2007 Thread Index] [Thread Next]

[arachne] Re: Spaces in URLs

  • From: "Glenn McCorkle" <glennmcc@xxxxxxxxxx>
  • To: arachne@xxxxxxxxxxxxx
  • Date: Sun, 22 Apr 2007 19:37:55 -0500
Arachne at FreeLists---The Arachne Fan Club!

Well I'll be danged......

Thank you Jason for be so patient and further pointing-out
the error of my ways. ;-)

As promised... the trailing space code is now going into the trash can.
___________________________________________________________________________


On Sun, 22 Apr 2007 19:44:01 -0400, Jason & Ornumar Dodd wrote:

> I wasn't very good at making my case the first time but you can also make 
> directories with trailing spaces... at least in
> linux.
> e.g.

> Here are some directory listing commands after I created a directory with a 
> trailing space. Notice there is no directory
> 'trash' but there is a 'trash '. And I created a file in it.

> jason@jason-laptop:~$ ls -l 'trash'
> ls: trash: No such file or directory

> jason@jason-laptop:~$ ls -l 'trash '
> total 4

> -rw-r--r-- 1 jason jason 35 2007-04-22 19:39 
> test_file_in_dir_trailing_space.txt

> jason@jason-laptop:~$ ls -l /home/jason/trash\ /test*

> -rw-r--r-- 1 jason jason 35 2007-04-22 19:39 /home/jason/trash 
> /test_file_in_dir_trailing_space.txt
> jason@jason-laptop:~$

> Glenn McCorkle wrote:

> Hi Matt,

> Thank you very much for the heads-up.

> I did some experimentation in Linux
> and it turns-out that you are 100% correct.
> (as you already knew) ;-)

> Leading spaces in dirnames and filenames _are_ in-fact perfectly legal.

> But try as I may, I could not make or rename any dirnames nor filenames
> with trailing spaces.

> The 'fix' has now been modified to simply remove any erroeous trailing
> spaces which we might happen-across during our ventures through the web.

> http://www.cisnet.com/glennmcc/badspace.htm
> has also been updated to reflect this change.

> If however you (or anyone else), points-out that trailing spaces are
> in-fact also 'legal' ... the trailing space code will also be removed.

> Thank again for showing me the error of my ways. :))

-- 
 Glenn
 http://www.delorie.com/listserv/mime/
 http://www.cisnet.com/glennmcc/
 http://www.law.cornell.edu/constitution/constitution.table.html
                  Arachne at FreeLists                  
-- Arachne, The Premier GPL Web Browser/Suite for DOS --





[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.