ConsoleOperation nextOperation = operations.remove(0);
if( nextOperation.getBuffer().length() > 0) {
AeshLine line = Parser.findAllWords(nextOperation.getBuffer());
currentOperation = new ConsoleOperation(nextOperation.getControlOperator(), op.getBuffer());
Resource fileRelativePath =
getAeshContext().getCurrentWorkingDirectory().newInstance(
Parser.switchEscapedSpacesToSpacesInWord(line.getWords().get(0)));
Resource readFile = fileRelativePath.resolve( context.getCurrentWorkingDirectory()).get(0);
if(readFile.isLeaf()) {
standardStream.setStdIn(new BufferedInputStream( readFile.read()));
output = new ConsoleOperation(nextOperation.getControlOperator(),op.getBuffer());
}
else {
err().println(settings.getName() + ": " + readFile.toString()+ " no such file.");
currentOperation = null;
output = new ConsoleOperation(ControlOperator.NONE, op.getBuffer());
}
}
else {