What would it take to add a new environment variable like $OUTPUT to keep track of the last output? I like the $(!!) solution from https://stackoverflow.com/questions/24283097/reusing-output-from-last-command-in-bash but I don't like that it redoes the work (especially if the work is intensive). -Yefim