Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: wordcode files
- X-seq: zsh-workers 9968
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: wordcode files
- Date: Thu, 2 Mar 2000 16:43:23 +0000
- In-reply-to: <200003021003.LAA12189@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200003021003.LAA12189@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Mar 2, 11:03am, Sven Wischnowsky wrote:
} Subject: Re: PATCH: wordcode files
}
} I wrote:
}
} > Bart Schaefer wrote:
} >
} > > This all sounds fine, although I lean towards requiring that the .zwc
} > > extension appear in the $fpath listing. What happens, for example, if
} > > I have both a ~/zshfun/ and ~/zshfun.zwc and I list ~/zshfun in $fpath?
} >
} > You get the functions in ~/zshfun because you named that. But we can
} > change that to be more consistent (I mean: requiring the extension).
}
} This'll do?
I'm not exactly sure. It looks like that patch forces zcompile to tack
the .zwc extension on to the end of the name (and to only look for
wordcode in files that have the .zwc extension). Is that right?
That's fine, but ...
How does that help with the situation where I have a directory named
"foo" and a file named "foo.zwc" both within the same parent directory?
What *I* meant was, fpath=(foo) would look only for directories named
"foo", so I'd have to use fpath=(foo.zwc) if I really wanted the file;
but if there was a file foo/func.zwc then "autoload func" would still
find it. That's independent of whether a non-.zwc file might contain
wordcode.
However, I don't have a strong opinion. Anyone else?
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author