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

Simple way to save/restore options?



I am using zsh-3.1.1 (just switched on to 3.1.2) and have small problem.

I set some options in ~/.zshenv  (e.g. nobanghist) and use the following
in /etc/zprofile:

emulate sh                                                                      
. /etc/profile                                                                  
emulate zsh                                                                     

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?

thanks in advance

-------------------------------------------------------------------------
Andrej Borsenkow 		Fax:   +7 (095) 252 01 05
SNI ITS Moscow			Tel:   +7 (095) 252 13 88

NERV:  borsenkow.msk		E-Mail: borsenkow.msk@xxxxxx
-------------------------------------------------------------------------




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