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

Re: zsh handling of non-standard if-evaluations



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