Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#270608: zsh: dpkg completion broken



also sprach Clint Adams <schizo@xxxxxxxxxx> [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@xxxxxxxxxx>
: :'  :    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: signature.asc
Description: Digital signature



Messages sorted by: Reverse Date, Date, Thread, Author