From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29915 invoked from network); 28 Jul 1999 05:14:08 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Jul 1999 05:14:08 -0000 Received: (qmail 17746 invoked by alias); 28 Jul 1999 05:13:57 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7301 Received: (qmail 17736 invoked from network); 28 Jul 1999 05:13:52 -0000 From: "Bart Schaefer" Message-Id: <990728051241.ZM27045@candle.brasslantern.com> Date: Wed, 28 Jul 1999 05:12:41 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: PATCH: _cvs should complete dot-files (?) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii After 7295 and 7296, the _cvs completer stopped matching files whose name begins with a dot upon "cvs add". This restores that behavior, and also removes the now-extraneous assignment to $all. I personally want dot-files completed here, but it might be nice to omit them unless you've typed the leading dot yourself. That behavior is at the end as a uuencoded patch (so you can't accidentally apply both; they conflict). Index: Completion/User/_cvs =================================================================== @@ -308,13 +308,12 @@ if [[ -d ${pref}CVS ]]; then _cvsentries setopt localoptions unset - local all omit - all=( ${pref}*~${pref}CVS(D:t) ) + local omit omit=( CVS $entries ${=cvsignore} ) [[ -r ~/.cvsignore ]] && omit=( $omit $(<~/.cvsignore) ) [[ -r ${pref}.cvsignore ]] && omit=( $omit $(<${pref}.cvsignore) ) - compgen -g '*~(*/|)('${(j:|:)omit:q}')' || - { _cvsdirentries; compgen -g '('${(j:|:)entries:q}')' } + compgen -g '*~(*/|)('${(j:|:)omit:q}')(D)' || + { _cvsdirentries; compgen -g '('${(j:|:)entries:q}')(D)' } else _files fi The first line of this uuencoded block is a compgen command cut'n'pasted from xtrace output of the _cvsaddp function that results after applying the patch in the rest of the block and then typing "cvs add Src/" in my zsh source tree. 3.1.6-test-3 dumps core with a garbaged stack (no useful backtrace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