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

zfinit problem in ksh emulation mode



Hi,

I have a problem running zfinit in ksh emulation ( running zsh as a link
from /usr/bin/ksh )

When I try:

user@zambezi: autoload -U zfinit
user@zambezi: zfinit
zsh: zfinit: function not defined by file

However if I run zsh like this (which I'm not allowed to do in scripts)

user@zambezi: /bin/zsh
[user@zambezi]/usr/share/zsh% autoload -U zfinit
[user@zambezi]/usr/share/zsh% zfinit
[user@zambezi]/usr/share/zsh% zfparams puma jro PassW0rd
[user@zambezi]/usr/share/zsh% zfopen
[user@zambezi]/usr/share/zsh% zfls
.kshrc
.rhosts
.jrrc_hp
.ssh

It all works fine. So it is potentially possible.

Is there some option I can set in my script so that when my script runs as:

#!/usr/bin/ksh

That this will work ...

Thanks in advance,

Jerry


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