zsh-users
 help / color / mirror / code / Atom feed
* Simple way to save/restore options?
@ 1997-05-12 12:00 Andrej Borsenkow
  1997-05-12 17:46 ` Zefram
  0 siblings, 1 reply; 2+ messages in thread
From: Andrej Borsenkow @ 1997-05-12 12:00 UTC (permalink / raw)
  To: Zsh users mailing list

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@sni.de
-------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Simple way to save/restore options?
  1997-05-12 12:00 Simple way to save/restore options? Andrej Borsenkow
@ 1997-05-12 17:46 ` Zefram
  0 siblings, 0 replies; 2+ messages in thread
From: Zefram @ 1997-05-12 17:46 UTC (permalink / raw)
  To: borsenkow.msk; +Cc: zsh-users

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-05-12 18:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-12 12:00 Simple way to save/restore options? Andrej Borsenkow
1997-05-12 17:46 ` Zefram

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).