From 3c4e61983bf9ad4c2fdf279271247d07ab591e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Mon, 25 Jun 2012 20:38:29 +0000 Subject: [PATCH] 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] --- v2/engine/execnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/engine/execnt.c b/v2/engine/execnt.c index 5c91a727f..e51acccb5 100644 --- a/v2/engine/execnt.c +++ b/v2/engine/execnt.c @@ -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;