From: Nick Stenning <nick@whiteink.com>
To: zsh-users@sunsite.dk
Subject: Functions, sourcing and compinit: function definition file not found.
Date: Mon, 25 Sep 2006 10:53:47 +0100 [thread overview]
Message-ID: <20060925095347.GD2643@phoenix.flamingpenguin.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1141 bytes --]
Hi all,
I'm having a bit of a weird problem here that I hope you can help me
with. I've got a fairly simple function called "reload" which looks like
this:
if [[ "$#*" -eq 0 ]]; then
source ${zdotdir}/.zshenv
source ${zdotdir}/.zshrc
else
local fn
for fn in "$@"; do
unfunction $fn
autoload -U $fn
done
fi
The second half works just fine: calling "reload some_function" works as
expected, but the first half throws a funny error:
/home/borior/.zshrc:106: compinit: function definition file not found
Now line 106 looks a bit like this:
102 zshrc_load_status "completions"
103
104 # Load completions
105 autoload -U compinit
106 compinit -u
The really odd part of this story comes when I tell you that
"source ${zdotdir}/.zshrc" works absolutely fine from the shell. No
error from compinit whatsoever.
This is zsh 4.3.2 (i386-portbld-freebsd6.1), but IIRC it's replicable on
other systems and versions of zsh.
Any ideas would be much appreciated (especially if you could CC to me
directly, as I'm not subscribed to the ML).
Regards,
Nick
[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]
next reply other threads:[~2006-09-25 11:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-25 9:53 Nick Stenning [this message]
2006-09-25 11:17 ` 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=20060925095347.GD2643@phoenix.flamingpenguin.net \
--to=nick@whiteink.com \
--cc=zsh-users@sunsite.dk \
/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).