Added ! and | shell commands, and modified lastresult behavior.