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

Re: [PATCH] Update make completion with gnu options



On Jul 12,  7:46am, Nick Cross wrote:
}
} -    file=($opt_args[(K)(-f|--file|--makefile)])
} -    file=$file[1]
} +    file=${(v)opt_args[(I)(-f|--file|--makefile)]}

The (I) subscript flag returns an array of all the possible matching
elements, so if there happens to be more than one file option the
above will not assign a useful file name to $file.



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