Use 'local -' instead of messing with set/$-