Verify bash hist substitutions before exec