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

Re: PATCH: wordcode files



Bart Schaefer wrote:
>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?

One logical way to handle this (if .../foo is in $fpath) is that the
digest file is treated as a cache of the directory in the same way that
individual wordcode files cache individual text files.  So if autoloading
`bar' from that $fpath entry, zsh would date-compare (a) .../foo/bar (text
file), (b) .../foo/bar.zwc (individual wordcode), and (c) .../foo.zwc
(entry for `bar' in digest file), and use the newest of the three.

I'm not necessarily recommending this, it's just something to think about.

-zefram



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