zsh-users
 help / color / mirror / code / Atom feed
From: Jerry Rocteur <jerry.rocteur@gmail.com>
To: Peter Stephenson <Peter.Stephenson@csr.com>
Cc: zsh-users@zsh.org
Subject: Re: zfinit problem in ksh emulation mode
Date: Wed, 28 Jul 2010 15:43:20 +0200	[thread overview]
Message-ID: <AANLkTinJ-FCXpxALUWHRUVOMP+7bo_boHE3JM87FJQr5@mail.gmail.com> (raw)
In-Reply-To: <20100728142944.7a7c2a94@csr.com>

[-- Attachment #1: Type: text/plain, Size: 2031 bytes --]

On Wed, Jul 28, 2010 at 15:29, Peter Stephenson <Peter.Stephenson@csr.com>wrote:

> On Wed, 28 Jul 2010 13:36:42 +0200
> Jerry Rocteur <jerry.rocteur@gmail.com> wrote:
> > 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
>
> "autoload -Uz zfinit" is a better bet, to force zsh-style autoload.
>
> Unfortunately we're not very consistent about using those flags in the
> distributed functions, so while it'll probably run it might not do the
> trick with the other zftp functions since zfinit currently runs just
> "autoload -U ..." with the effects you've just seen.  I'll apply a very
> boring patch that fixes up every autoload under Functions in the
> distribution, unless anybody knows of an exception (which would surprise
> me).
>
> Until then, you might want to modify zfinit by hand to replace all the
> "autoload -U"s with "autoload -Uz".  After that you might be OK, since I
> was more successful with putting "emulate -L zsh" at the top of functions.
>

Thanks Peter, I can't change all the installation, I did try the -Uz zfinit
but then it failed with zfparams: function not defined.

I may be out of luck until they install an updated copy here!

> Is there some option I can set in my script so that when my script
> > runs as:
> >
> > #!/usr/bin/ksh
> >
> > That this will work ...
>
> The obvious one to try is "unsetopt kshautoload".
>
> I tried it but then when running zfinit I get:

zfinit:42: command not found: compctl
zfinit:50: command not found: compctl
zfinit:51: command not found: compctl
zfinit:52: command not found: compctl
zfinit:53: command not found: compctl
zfinit:58: command not found: compctl
zfinit:67: command not found: compctl

I can still write the scripts to run on my system but will have to wait for
a new version of zsh here before I can write production scripts

Thanks for the answer!

Cheers,

Jerry

  reply	other threads:[~2010-07-28 13:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-28 11:36 Jerry Rocteur
2010-07-28 13:29 ` Peter Stephenson
2010-07-28 13:43   ` Jerry Rocteur [this message]
2010-07-28 15:19     ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTinJ-FCXpxALUWHRUVOMP+7bo_boHE3JM87FJQr5@mail.gmail.com \
    --to=jerry.rocteur@gmail.com \
    --cc=Peter.Stephenson@csr.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).