Handle backslash protection inside unquoted commands like:

(lldb) file hello\ world

correctly.
<rdar://problem/11093911>

llvm-svn: 160591
This commit is contained in:
Jim Ingham 2012-07-21 00:12:58 +00:00
parent d3957e57f6
commit a39fb7a4e1
1 changed files with 12 additions and 1 deletions

View File

@ -230,7 +230,18 @@ Args::SetCommandString (const char *command)
break;
default:
arg_pos = arg_end + 2;
if (quote_char == '\0')
{
arg.append (arg_piece_start, arg_end - arg_piece_start);
if (arg_end + 1 != '\0')
{
arg.append (arg_end + 1, 1);
arg_pos = arg_end + 2;
arg_piece_start = arg_pos;
}
}
else
arg_pos = arg_end + 2;
break;
}
break;