std.path.getName(): Screwy by design?

Walter Bright newshound2 at digitalmars.com
Tue Mar 1 15:27:06 PST 2011


Andrei Alexandrescu wrote:
> On 3/1/11 3:42 PM, Nick Sabalausky wrote:
>> There's a long, seemingly-unending history of unix programs choking on 
>> paths
>> with spaces in them *even* when you give them the paths properly escaped.
>> Not all unix apps, but enough.
> 
> make and latex are prime examples. I have made an executive decision to 
> never even attempt to use spaces with these programs.

Similarly, never use / as a path separator in Windows. Sure, it works sometimes. 
But it often fails in random ways, even with Windows system programs. For 
example, / doesn't work with the COPY command.

I've always hated the Windows "Documents and Settings" subdirectory. Arggh. 
Always a pain to use on the command line.


More information about the Digitalmars-d mailing list