Implement variants of eval command.