zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: Joey Hess <joeyh@debian.org>, 239975@bugs.debian.org
Cc: zsh-workers@sunsite.dk
Subject: PATCH: Re: Bug#239975: diff tab completion broken for second dir
Date: Thu, 25 Mar 2004 11:59:05 -0500	[thread overview]
Message-ID: <20040325165905.GA8707@scowler.net> (raw)
In-Reply-To: <20040325041020.GA826@kitenet.net>

> joey:~>mkdir a b
> joey:~>diff --exclude=foo --exclude=bar -ur a <tab><tab>
> --exclude-from              -X  -- exclude files matching pattern in file      
> --expand-tabs               -t  -- expand tabs to spaces                       
> --forward-ed                    -- output a reversed ed script                 
> --from-file                     -- compare specified file to all operands
> 
> For some reason if there are two --exclude's on the command line, it gets
> confused, and doesn't realize that the second non-option argument is supposed
> to be a file/directory.

That's because the diff completion doesn't know that you can use
-x/--exclude more than once.  I wonder if this is the only option
mis-specified thusly.

Index: Completion/Unix/Type/_diff_options
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_diff_options,v
retrieving revision 1.7
diff -u -r1.7 _diff_options
--- Completion/Unix/Type/_diff_options	14 Nov 2003 11:56:56 -0000	1.7
+++ Completion/Unix/Type/_diff_options	25 Mar 2004 16:45:27 -0000
@@ -90,7 +90,7 @@
     '(-N --new-file)'{-N,--new-file}'[treat absent files as empty]' \
     '(-P --unidirectional-new-file)'{-P,--unidirectional-new-file}'[treat absent first files as empty]' \
     '(-s --report-identical-files)'{-s,--report-identical-files}'[report when two files are the same]' \
-    '(-x --exclude)'{-x+,--exclude=}'[exclude files matching pattern]:exclusion pattern' \
+    \*{-x+,--exclude=}'[exclude files matching pattern]:exclusion pattern' \
     '(-X --exclude-from)'{-X+,--exclude-from=}'[exclude files matching pattern in file]:exclude file:_files' \
     '(-S --starting-file)'{-S+,--starting-file=}'[set first file in comparison]:start with file:_files' \
     '(--to-file)--from-file=[compare specified file to all operands]:from file:_files' \


           reply	other threads:[~2004-03-25 17:00 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20040325041020.GA826@kitenet.net>]

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=20040325165905.GA8707@scowler.net \
    --to=schizo@debian.org \
    --cc=239975@bugs.debian.org \
    --cc=joeyh@debian.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).