Re: spaces at ends of filenames or directory names on Win32
- From: Larry Bates <larry.bates@xxxxxxxxxxx>
- Date: Sat, 25 Feb 2006 15:48:20 -0600
Jeffrey Schwab wrote:
Larry Bates wrote:
IMHO leading and/or trailing spaces in filenames is asking for
incompatibilities with cross-platform file access.
With what platforms specifically?
Much like
using single-quote in filenames which are perfectly legal in
DOS/Windows, but Linux doesn't like much.
Uh... What Linux are you using? And what FS?
$ touch "'" && ls
'
$ rm "'"
$
I stand corrected if you put double quotes around filenames
it does work. That to me means that single quotes
in filenames are somehow "different" than other characters.
You must handle these filenames differently (at least from
the command line). Thanks for pointing this out.
-Larry Bates
.
- Follow-Ups:
- Re: spaces at ends of filenames or directory names on Win32
- From: Jeffrey Schwab
- Re: spaces at ends of filenames or directory names on Win32
- References:
- spaces at ends of filenames or directory names on Win32
- From: rtilley
- Re: spaces at ends of filenames or directory names on Win32
- From: Larry Bates
- Re: spaces at ends of filenames or directory names on Win32
- From: Steven D'Aprano
- Re: spaces at ends of filenames or directory names on Win32
- From: Larry Bates
- Re: spaces at ends of filenames or directory names on Win32
- From: Jeffrey Schwab
- spaces at ends of filenames or directory names on Win32
- Prev by Date: Re: Concantenation and string slicing
- Next by Date: Re: spaces at ends of filenames or directory names on Win32
- Previous by thread: Re: spaces at ends of filenames or directory names on Win32
- Next by thread: Re: spaces at ends of filenames or directory names on Win32
- Index(es):
Relevant Pages
|