Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: autoload +X[zk]



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