TESTS: since we track expcmdsn we dont need to keep the old value around in a static variable