zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: 3.1.5-pws-10: _tar
Date: Thu, 04 Mar 1999 17:29:08 +0100	[thread overview]
Message-ID: <9903041629.AA18640@ibmth.df.unipi.it> (raw)
In-Reply-To: "Sven Wischnowsky"'s message of "Thu, 04 Mar 1999 16:52:14 NFT." <199903041552.QAA02979@beta.informatik.hu-berlin.de>

Sven Wischnowsky wrote:
> The things below adds a helper function `_multi_parts' that gets two
> arguments: a separator character and an array (name or `(...)'). It
> will then complete the parts of the words that are separated by the
> separator character.
> 
> It also changes the `_tar' function to use `_multi_parts', maybe Peter
> would like to put the changed one into `_tar2' so that users can
> decide which one they want.

This isn't working for directories for me.  After zsh-3.1.5-pws-10/ it will
complete files, but not Src.  Typing Src/ makes it complete files but not
directories down there, and so on.  Trying to do a lot in one go leaves a
space where Src should have been, and makes no change after that.

In fact, now it's stopped working altogether: zsh-<TAB> does nothing in
that position.  It's calling _multi_parts, and the list of files is right,
but nothing's coming back.  When I type zsh-3.1.5-pws-10/, I can see it
generate a list of completions with that removed, then I get this

+ orig= 
+ patstr=* 
+ [[  == */* ]]
+ eval pat="$patstr:gs.*.[^/]#."
+ pat=[^/]# 
+ tmp1=( ) 
+ ((  0  ))
+ [[ * == */* ]]
+ [[ nm -ne compstate[nmatches] ]]

and that's all I get. For trying to complete zsh-<TAB>, I get this

+ [[ / == / ]]
+ gsep=. 
+ patstr=zsh-** 
+ orig=zsh- 
+ matchflags= 
+ _match_pattern _path_files patstr matchflags
+ eval matchflags='(#l)'
+ matchflags=(#l) 
+ [[ 2 -eq 2 ]]
+ eval patstr='zsh*-**'
+ patstr=zsh*-** 
+ [[ -n  ]]
+ eval patstr=$patstr:gs-/-\*/-:gs/\*\*/\*/
+ patstr=zsh*-* 
+ pref= 
+ [[ zsh- == */* ]]
+ eval pat="$patstr:gs.*.[^/]#."
+ pat=zsh[^/]#-[^/]# 
+ tmp1=( ) 
+ ((  0  ))
+ [[ zsh*-* == */* ]]
+ [[ nm -ne compstate[nmatches] ]]

and nothing more. Is it mishandling cases with a / at the end?  But what's
happened to the listing I got before of file in zsh-3.1.5-pws-10?  I'm very
confused.

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


  reply	other threads:[~1999-03-04 16:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-04 15:52 Sven Wischnowsky
1999-03-04 16:29 ` Peter Stephenson [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-03-05  8:18 Sven Wischnowsky
1999-03-05  8:52 ` Peter Stephenson
1999-03-02 10:35 Peter Stephenson

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=9903041629.AA18640@ibmth.df.unipi.it \
    --to=pws@ibmth.df.unipi.it \
    --cc=zsh-workers@sunsite.auc.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).