On 21/01/2016 01:26, Nikolay Aleksandrovich Pavlov wrote:
2016-01-19 21:52 GMT+03:00 Gary Johnson <[email protected]
<mailto:[email protected]>>:

    On Unix, a space is a separator.  Spaces in file names require
    quoting.  I don't think Vim should violate that convention here just
    because it can.  It would be horribly inconsistent.

​Space is not a separator on *Unix*. This is a *shell* where space is a
separator and shells on windows *also* treat spaces as separators.​ Main
difference is that not *all* spaces are separators in cmd.exe (dunno
about powershell): basically the only place where it is guaranteed to
have space as a separator is a single space after the command name
because all other spaces (except those before and after operators like
`&` or `|`, which are not separators as well) are parsed by the program
itself and not the shell. But this is *in cmd.exe* (and, maybe, in
powershell) while you can install bash and other *nix shells on windows.
Also note that standard library used for parsing arguments to argument
list treats spaces as separators on windows as well, and it is used by
most of console applications, so you will hardly notice the difference
in most cases.


    Just my $0.02.

Things are slightly murkier on Windows. Each process only ever has a single command line string. During process startup there are library calls to split the command line using space or tabs as argument delimiters. This is then passed to the main entry point as the argv array (in the C world). The rules for parsing the command line are:

https://msdn.microsoft.com/en-us/library/a1y7w461%28v=vs.110%29.aspx

I would think it would be safe to say that VIM on Windows (these days, can't speak to 3.1/9x) will do the expected thing wrt space separators.

Mike
--
No I don't need your help, I get in enough trouble all by myself.

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui