zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <A.Main@dcs.warwick.ac.uk>
To: alex_ramos@wiltel.com
Cc: zsh-workers@math.gatech.edu (Z Shell workers mailing list)
Subject: Re: autoload bug in 2.6-beta10
Date: Fri, 8 Sep 1995 21:04:18 +0100 (BST)	[thread overview]
Message-ID: <17781.199509082004@headwind.dcs.warwick.ac.uk> (raw)
In-Reply-To: <199509081910.AA14139@intruder.wiltel.com> from "Alex Ramos" at Sep 8, 95 02:10:35 pm

>It appears that parameters are not passed to autoload functions
>in 2.6-beta10. Sorry if this had already been reported, but I
>joined the mailing list fairly recently.
>
>e.g. 
>	foo() { echo $1 }
>
>If this function is autoloaded, then invoking "foo test" results
>in echoing a blank line.

This is not a bug.  At least, not entirely.  Autoloaded function files
should not contain the foo() bit, as the entire contents of the file is
taken as the contents of the function.  The first time you run the
undefined function, it just redefines itself.  The second time, it will
do what you want.  This is explained in section C5 of the Zsh FAQ.

But zsh is supposed to accept the Korn shell syntax, as of a few betas
ago, so there is a bug here.

-zefram


       reply	other threads:[~1995-09-08 20:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199509081910.AA14139@intruder.wiltel.com>
1995-09-08 20:04 ` Zefram [this message]
1995-09-11 13:41 ` P.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=17781.199509082004@headwind.dcs.warwick.ac.uk \
    --to=a.main@dcs.warwick.ac.uk \
    --cc=alex_ramos@wiltel.com \
    --cc=zsh-workers@math.gatech.edu \
    /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).