Thilo Six wrote:
[...]
>> [ -n "$ZSH_VERISON" ] && emulate -L sh
>
> I tried this, same effect as before - it does not work.
> I guess the reason is the same, since "emulate -L sh" isn't activated
> '$ZSH_VERISON' will not be evaluated correctly.
> Setting "emulate -L sh" prior to running the function in zsh fixes this.
Err, heh. Well, looks like a typo snuck in. That should obviously be
VERSION, not VERISON. So:
[ -n "$ZSH_VERSION" ] && emulate -L sh |