zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#270608: zsh: dpkg completion broken
       [not found]                 ` <20040911063908.GA29864@cirrus.madduck.net>
@ 2004-09-11 16:31                   ` Clint Adams
  2004-09-11 17:07                     ` martin f krafft
  0 siblings, 1 reply; 4+ messages in thread
From: Clint Adams @ 2004-09-11 16:31 UTC (permalink / raw)
  To: zsh-workers; +Cc: martin f krafft, 270608-forwarded

> I found the culprit:
> 
>   fignore="~:#:bk"
> 
> If I take out the '#', it works.
> 
> Still, this seems like a bug to me...

Well, "fignore" is an array, and "FIGNORE" is a scalar, so what you
probably wanted to type is either

FIGNORE="~:#:bk"

or

fignore=(\~ # bk)

though you might want to drop "fignore" altogether and use a
ignored-patterns zstyles instead.

I would guess that the failure to complete directories with the "fignore"
you mentioned has something to do with misinterpretation of "~:#:bk";
maybe the massaging of fignore to _comp_ignore could use more escaping.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug#270608: zsh: dpkg completion broken
  2004-09-11 16:31                   ` Bug#270608: zsh: dpkg completion broken Clint Adams
@ 2004-09-11 17:07                     ` martin f krafft
  2004-09-11 20:28                       ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: martin f krafft @ 2004-09-11 17:07 UTC (permalink / raw)
  To: Clint Adams; +Cc: zsh-workers, 270608-done

[-- Attachment #1: Type: text/plain, Size: 1156 bytes --]

also sprach Clint Adams <schizo@debian.org> [2004.09.11.1831 +0200]:
> Well, "fignore" is an array, and "FIGNORE" is a scalar, so what you
> probably wanted to type is either
> 
> FIGNORE="~:#:bk"
> 
> or
> 
> fignore=(\~ # bk)

Oh dear. I can confirm that this is the problem. Bug closed.

> though you might want to drop "fignore" altogether and use a
> ignored-patterns zstyles instead.

I did.

zstyle ':completion:*:(all-|)files' ignored-patterns '*.bk' '*~' '*\#'

Thanks for the hint.

This opens another issue... the manpage says that 

  Note that the EXTENDED_GLOB option is set during  the  execution
  of completion functions, so the characters ‘#’, ‘~’ and ‘^’ have
  special meanings in the patterns.

However, the above line only works if I do *not* escape ~.

Thanks for your help!

-- 
Please do not CC me when replying to lists; I read them!
 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, and user
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug#270608: zsh: dpkg completion broken
  2004-09-11 17:07                     ` martin f krafft
@ 2004-09-11 20:28                       ` Bart Schaefer
  2004-09-11 20:31                         ` martin f krafft
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2004-09-11 20:28 UTC (permalink / raw)
  To: martin f krafft; +Cc: zsh-workers, 270608-done

On Sat, 11 Sep 2004, martin f krafft wrote:

> zstyle ':completion:*:(all-|)files' ignored-patterns '*.bk' '*~' '*\#'

> This opens another issue... the manpage says that 
> 
>   Note that the EXTENDED_GLOB option is set during  the  execution
>   of completion functions, so the characters #, ~ and ^ have
>   special meanings in the patterns.
> 
> However, the above line only works if I do *not* escape ~.

That's probably because ~ has special meaning only at certain positions in 
patterns, and at the end is not one of them.

However, it is a little surprising.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug#270608: zsh: dpkg completion broken
  2004-09-11 20:28                       ` Bart Schaefer
@ 2004-09-11 20:31                         ` martin f krafft
  0 siblings, 0 replies; 4+ messages in thread
From: martin f krafft @ 2004-09-11 20:31 UTC (permalink / raw)
  To: zsh-workers; +Cc: 270608-done

[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

also sprach Bart Schaefer <schaefer@brasslantern.com> [2004.09.11.2228 +0200]:
> That's probably because ~ has special meaning only at certain positions in 
> patterns, and at the end is not one of them.
> 
> However, it is a little surprising.

Yeah, maybe the manpage could be updated.

Thanks.

(now the only thing keeping zsh from being perfect is
readline/unicode support)

-- 
Please do not CC me when replying to lists; I read them!
 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, and user
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-11 20:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20040910161256.GA12173@scowler.net>
     [not found] ` <20040910161910.GA23853@cirrus.madduck.net>
     [not found]   ` <20040910163119.GA12581@scowler.net>
     [not found]     ` <20040910172215.GA27368@cirrus.madduck.net>
     [not found]       ` <20040910185500.GA15086@scowler.net>
     [not found]         ` <20040908085302.GA32363@cirrus.madduck.net>
     [not found]           ` <20040908180727.GB25987@scowler.net>
     [not found]             ` <20040910093933.GC4099@cirrus.madduck.net>
     [not found]               ` <20040910155528.GA11672@scowler.net>
     [not found]                 ` <20040911063908.GA29864@cirrus.madduck.net>
2004-09-11 16:31                   ` Bug#270608: zsh: dpkg completion broken Clint Adams
2004-09-11 17:07                     ` martin f krafft
2004-09-11 20:28                       ` Bart Schaefer
2004-09-11 20:31                         ` martin f krafft

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).