2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

Fixed a Boost Jam bug on Windows where it would incorrectly interpret shell I/O redirection characters <>| and quote characters "' when deciding whether a command can be executed without an external shell if the first non-whitespace character in the command is a quote character (either single or double).

[SVN r79091]
This commit is contained in:
Jurko Gospodnetić
2012-06-25 20:38:29 +00:00
parent 561913e8cc
commit 3c4e61983b

View File

@@ -651,7 +651,7 @@ static long raw_command_length( char const * command )
case '"':
case '\'':
if ( ( p > command ) && ( p[ -1 ] != '\\' ) )
if ( ( p == command ) || ( p[ -1 ] != '\\' ) )
{
if ( inquote == *p )
inquote = 0;