Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: new-style completition for gnu grep and ls
- X-seq: zsh-workers 13334
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: new-style completition for gnu grep and ls
- Date: Tue, 9 Jan 2001 09:51:10 +0100 (MET)
- In-reply-to: Ulrik Haugen's message of Wed, 3 Jan 2001 17:32:15 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Ulrik Haugen wrote:
> I've written completition functions for the gnu versions of grep and ls. (I
> use zsh 3.1.9-dev-6 and I couldn't find completition for them.)
Thanks for your help. Very much appreciated.
> I'd be happy if you include them in future releases.
I can foresee some more discussion with people who don't have
GNU-systems and who don't like GNU-specific completion functions for
commands. So either we find a way to check for GNU/non-GNU completion
in your functions or we'll wait until we have a sub-directory for
GNU-specific completion functions.
> local efgrep="" E extended_regexp F fixed_strings
>
> case "${words[1]:t}" in
> (egrep|fgrep) efgrep=t;
> ;;
> esac
That could be done with `[[ "${words[1]:t}" = [ef]grep ]] && efgrep=t'.
That also reminds me that my services-patch (`compdef krsh=rsh', see
12977) is still not committed, mostly because I got no reply...
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author