List Info

Thread: patch for windows native paths




patch for windows native paths
user name
2006-12-19 14:12:21
"Andreas Fredriksson" <deplinenoisegmail.com> wrote:

>On 12/18/06, Vladimir Prus <ghostcs.msu.su> wrote:
>> Which shell is that that does not like forward
slashes. I think all versions of Windows
>> I ever used had no problems with forward slashes. I
don't say that you shell is "wrong",
>> but I'd like to know what's the actual problem
here.
>
>The vanilla cmd shell in windows doesn't accept forward
slashes. Or
>rather, the programs supplied with that shell don't:
>
>C:temp>mkdir foo
>C:temp>mkdir foobar
>C:temp>dir foo/bar
>Parameter format not correct - "bar".

That's because the "dir" command, and most of the
others too, use the
forward slash as an indicator that a flag follows. In *nix
systems you
use the dash (-) for that. In Windows, it's either dash or
forward
slash. 

If you surround the path with doublequotes, it will work:

C:temp>dir "foo/bar"

The doublequotes make the whole thing a  single argument,
and the
first argument is the path.

--  
Tim Slattery
Slattery_Tbls.gov
http://members.cox.n
et/slatteryt

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )