if (addToWhereBlock && parsedLine instanceof Assignment) {
Assignment assignment = (Assignment) parsedLine;
boolean shouldReplace = false, shouldAddToWhere = true;
if (assignment.lhs() instanceof Variable) {
String name = ((Variable) assignment.lhs()).name;
shellContext.put(name, result);
// Look up the value of the RHS of the variable from the shell context,
// if this is the second reference to the same variable.
assignment.setRhs(new LexprParser(new Tokenizer(