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

Re: GNU diff completion problem



>>> "Andrej" == Andrej Borsenkow <Andrej.Borsenkow@xxxxxxxxxxxxxx> writes:

 Andrej> I'm sorry, but I missed this discussion.
 Andrej> Why _diff_options tests diff and not real command ($word[1])? 

Because `_diff_options' can be called from places (`_prcs') where 
`$word[1]' is not the real command, not only called from `_diff'

 Andrej> I have system default diff and GNU diff as gdiff. Current state
 Andrej> does not allow me to complete GNU diff at all, and I do not want
 Andrej> change names for many reasons. I believe, this is often the case.

Perhaps a solution would be to pass the real command as the first
argument to `diff_options' and store the `_is_gnu_diff' flag in an
associative array as Sven suggested.

[...]

-- 
Alexandre Duret-Lutz



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