Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Autoloaded bash shell scripts treated as zsh
- X-seq: zsh-users 8564
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Autoloaded bash shell scripts treated as zsh
- Date: Tue, 08 Mar 2005 10:21:59 +0000
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <loom.20050308T002806-601@xxxxxxxxxxxxxx> <1050308060521.ZM1835@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
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