This commit is contained in:
ridiculousfish
2013-01-24 14:59:52 -08:00
parent 412902e4ae
commit 92b2376c23
5 changed files with 123 additions and 176 deletions

View File

@@ -497,14 +497,14 @@ static int builtin_complete(parser_t &parser, wchar_t **argv)
{
if (condition && wcslen(condition))
{
if (parser.test(condition, 0, 0, 0))
if (parser.test(condition))
{
append_format(stderr_buffer,
L"%ls: Condition '%ls' contained a syntax error\n",
argv[0],
condition);
parser.test(condition, 0, &stderr_buffer, argv[0]);
parser.test(condition, NULL, &stderr_buffer, argv[0]);
res = true;
}