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

Re: zsh 5.0.2-test-1 is available

John <jmharres@xxxxxxxxx> wrote:
>On 11/8/13, 7:11 PM, Bart Schaefer wrote:
>> On Nov 8,  4:11pm, Peter Stephenson wrote:
>> }
>> } It seems to me it's equally not an error to mark zstat as a builtin
>> } zsh/stat if it's already loaded as a builtin from zsh/stat.  It
>> } only be an error if there's a conflict.
>> }
>> } That's how "autoload" works, after all: it can't check for a
>> } (without major faff) but it does check if a function's already
>> I'm confused; these statements seem contradictory, so I must be
>> something.  If we can't check for a conflict, how can we suppress the
>> error message?  I.e., how do we know that zstat is already loaded as
>> builtin from the same module we're now loading?
>Could you do something as simple as remember a checksum (or md5sum) and
>maybe the filename when it's loaded?  It seems like that would catch 
>everything with a low risk of false matches.

I think that's overkill. I think giving a return status of 2 or 255 might be sufficient. 

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