zsh-workers
 help / color / mirror / code / Atom feed
From: Clemens Fischer <ino-qc@spotteswoode.de.eu.org>
To: zsh-workers@sunsite.dk
Subject: Re: bash completion functions
Date: Mon, 03 Feb 2003 13:51:18 +0100	[thread overview]
Message-ID: <isw1jznd.fsf@ID-23066.news.dfncis.de> (raw)
In-Reply-To: <15299.1043745489@finches.logica.co.uk>

Oliver Kiddle <okiddle@yahoo.co.uk>:

> _bash_complete() {
>   local ret=1
>   local -a suf matches
>   local COMP_POINT COMP_CWORD
>   local -a COMP_WORDS COMPREPLY BASH_VERSINFO
>   local COMP_LINE="$words"
>
>   (( COMP_POINT = ${#${(j. .)words}} + $$#QIPREFIX + $#IPREFIX + $#PREFIX ))
>   (( COMP_CWORD = CURRENT - 1))
>   COMP_WORDS=( $words )
>   BASH_VERSINFO=( 2 05b 0 1 release )
>   
>   [[ ${argv[${argv[(I)nospace]:-0}-1]} = -o ]] && suf=( -S '' )
> [...]

this is nice.  i learn much more about zsh mechanics now that i can
compare known functions with their zsh equivalent!

one thing, though:  you provide this patch, a patch to it and another
one on top of the last.  would you please post the complete version,
all goodies included?

  clemens


      parent reply	other threads:[~2003-02-03 13:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-28  9:18 Oliver Kiddle
2003-01-28  9:25 ` Zefram
2003-01-28 16:42 ` Bart Schaefer
2003-01-29 10:17   ` Oliver Kiddle
2003-01-29 11:16     ` Peter Stephenson
2003-01-29 11:26       ` Peter Stephenson
2003-01-29 14:11       ` Oliver Kiddle
2003-02-03 12:51 ` Clemens Fischer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=isw1jznd.fsf@ID-23066.news.dfncis.de \
    --to=ino-qc@spotteswoode.de.eu.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).