From: Scott Smedley <scottie@yoyo.cc.monash.edu.au>
To: zsh-users@sunsite.auc.dk
Subject: strange behaviour of zcompile
Date: Fri, 14 Jul 100 13:29:47 +1000 (EST) [thread overview]
Message-ID: <200007140329.NAA32187@yoyo.cc.monash.edu.au> (raw)
Hi,
I'm having a small problem getting zcompile to only
load a function the 1st time it is called. It works fine
except when I do NOT output to STDOUT.
Here is a little excerpt from my shell which I hope illustrates
the problem:
burns% uname -a
Linux burns 2.2.12-20 #1 Mon Sep 27 10:40:35 EDT 1999 i686 unknown
burns% echo $ZSH_VERSION
3.1.9-dev-1
burns% cat > a
a () { echo "function a executed" }
print "function $0 initialised."
burns% cat > b
b () { echo "function b executed" }
burns% zcompile -z -U a
burns% zcompile -z -U b
burns% fpath=(. $fpath)
burns% autoload a b
burns% a
function a initialised.
burns% a
function a executed
burns% b
function b executed
function a is behaving as I expect it 2, but function b is
being rther troublesome.
Could someone give me a pointer?
Many thanks,
SCoTT! :)
---------------
scott@mobinfo.com.au
next reply other threads:[~2000-07-14 3:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-14 3:29 Scott Smedley [this message]
2000-07-14 7:11 Sven Wischnowsky
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=200007140329.NAA32187@yoyo.cc.monash.edu.au \
--to=scottie@yoyo.cc.monash.edu.au \
--cc=zsh-users@sunsite.auc.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).