This commit is contained in:
Eelco Dolstra 2013-09-03 11:04:21 +00:00
parent 6f809194d7
commit 06bb2d95b4

View file

@ -39,9 +39,11 @@ void processExpr(EvalState & state, const Strings & attrPaths,
bool parseOnly, bool strict, Bindings & autoArgs,
bool evalOnly, bool xmlOutput, bool location, Expr * e)
{
if (parseOnly)
if (parseOnly) {
std::cout << format("%1%\n") % *e;
else
return;
}
foreach (Strings::const_iterator, i, attrPaths) {
Value v;
findAlongAttrPath(state, *i, autoArgs, e, v);