Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: autoload +X[zk]
- X-seq: zsh-workers 10298
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: autoload +X[zk]
- Date: Tue, 28 Mar 2000 16:10:23 +0200 (MET DST)
- In-reply-to: Sven Wischnowsky's message of Tue, 28 Mar 2000 13:52:38 +0200 (MET DST)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
I wrote:
> > Note also the handling of the positional parameters. For the first
> > call (i.e.: when the init code from the file is executed) they are not
> > set. Only for the appended function call are they set up. This is the
> > behaviour the ksh I have here shows.
Of course, it is already different for `normal' ksh-autoloading:
% cat foo
foo() { echo foo "$@"; }
echo init "$@"
set a b
% set x y; setopt kshautoload; fpath=(.); autoload foo; foo 1 2
init 1 2
foo a b
And with ksh:
$ set x y; FPATH=.; autoload foo; foo 1 2
init x y
foo 1 2
Oh well...
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author