avoid leaking shell-local variables