Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh handling of non-standard if-evaluations
- X-seq: zsh-users 11151
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: zsh handling of non-standard if-evaluations
- Date: Sun, 28 Jan 2007 20:10:40 +0000
- Cc: Daniel Qarras <dqarras@xxxxxxxxx>, zsh-users@xxxxxxxxxx
- In-reply-to: <070128120533.ZM730@xxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Daniel Qarras <dqarras@xxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <184104.7951.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <070128120533.ZM730@xxxxxxxxxxxxxxxxxxxxxx>
- Sender: Stephane Chazelas <stephane_chazelas@xxxxxxxx>
On Sun, Jan 28, 2007 at 12:05:33PM -0800, Bart Schaefer wrote:
[...]
> zmodload -i zsh/parameter && {
> __zsh=( ${(kv)options} )
> emulate sh
> . /etc/profile
> emulate zsh
> options=( $__zsh )
> unset __zsh
> }
>
> This has the side-effect of vacating any option settings from any scripts
> in /etc/profile.d that happen to know about zsh, but I think of that as a
> good thing.
Or
load-sh-profile() {
emulate -L sh
. /etc/profile
}
load-sh-profile
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author