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 06:05:21 +0000,  wrote:

>On Mar 7, 11:41pm, zzapper wrote:
>}
>} autoload ${fpath[1]}/*(:t) #autoload all functions in $fpath
>
>Well, as you discovered, this actually means:  "Assume the name of
>every file in $fpath is also the name of a zsh function, and create
>an autoload for every function so named."
>
>} As I also use the same directory for my legacy bash scripts, I was
>} unpleasantly surprised to find that these scripts had also been
>} autoloaded and were now being treated as zsh scripts.
>
>How (and why) did you expect zsh to tell the two sets of functions
>apart if you put them all in the same directories? There's no magic.
Bart, just forgot they were there!

BTW what's the best way to reload/unload a shell function you are working on?

I've been calling it directly

./myshell




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