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

Re: Autoloaded bash shell scripts treated as zsh



On Tue, 08 Mar 2005 10:26:18 +0000,  wrote:

>reload() {
>  if (( $# == 0 )); then
>    print "Reload what?" >&2
>    return 1
>  fi
>
>  while (( $# )); do
>    unfunction $1 && autoload $1
>    shift
>  done
>}

Thanx Peter, i'll borrow that thanx.

It's easy to forget that you can't just edit a zsh autoloaded function, and then run it!!




Messages sorted by: Reverse Date, Date, Thread, Author