Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Simple way to save/restore options?



Andrej Borsenkow wrote:
>It appears, that emulate sh (or emulate zsh) resets some options (notably
>nobangihst). Is there more simple way to source /etc/profile in /bin/sh
>mode and preserve any settings made before?

function sh_. {
  emulate sh
  setopt localoptions
  . "$@"
}

-zefram



Messages sorted by: Reverse Date, Date, Thread, Author