Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Sourcing bash completion files
- X-seq: zsh-users 21113
- From: Alarig Le Lay <alarig@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Sourcing bash completion files
- Date: Thu, 31 Dec 2015 11:30:03 +0100
- Authentication-results: bulbizarre.swordarmor.fr; dkim=pass reason="1024-bit key" header.d=swordarmor.fr header.i=@swordarmor.fr header.b=klK+ioCY; dkim-adsp=pass; dkim-atps=neutral
- Dkim-signature: v=1; a=rsa-sha1; c=simple; d=swordarmor.fr; h=date:from :to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=5f9Fyyc8vNN5cU3V0PB1WKXphQQ=; b=klK+ ioCYRyY4iI4oXH5lcmdmwuGmkd/ScaopAUShwKrQEwBOzQXdhceyVT+fQjDigLeB SD45OQRVAG8J/Lc5xXtrYcb/yJCNj51xGEkwfNVvzpBtKxlYMYMZos8AwqA3w2+6 8C2kQwRD1m03gq8E1AHYDgss0cwae1aTnHThkPk=
- Domainkey-signature: a=rsa-sha1; c=simple; d=swordarmor.fr; h=date:from :to:subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=default; b=eRekjhr5+zcV22HbolWp36K1UJgnIw SI1+kTtxUhgu1ytLmyRzD+kjg9YpuYZ386NnZpZ+GtSbIxKj1nWVvcDMzWqfhlax 1EWOOHaYgXPoIrmcltZm+03EYaJBYKpijwEdDcR2jHNqOs/3fUIVsvD3cggmZNu/ FsLe5KlzUHQn8=
- In-reply-to: <5684E4B2.8000100@gmx.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20151230232254.GC12070@drscott.swordarmor.fr> <151230173658.ZM9725@torch.brasslantern.com> <5684E4B2.8000100@gmx.com>
On Thu Dec 31 03:17:54 2015, Eric Cook wrote:
> On 12/30/2015 08:36 PM, Bart Schaefer wrote:
> > On Dec 31, 12:22am, Alarig Le Lay wrote:
> > }
> > } source /usr/share/bash-completion/bash_completion
> > }
> > } But I have an error on the source line:
> > } /usr/share/bash-completion/bash_completion:35: parse error near `]]'
> >
> > Interesting, it appears bash has adopted the ksh-style @(...) grouping
> > syntax. (Chet will probably confirm or deny.)
> >
> > Try:
> >
> > emulate sh -o kshglob -c 'source /usr/share/bash-completion/bash_completion'
> >
> that error is due to [[ not being able to span across lines.
> ignoring that, unfortunately that file has a quite a few bashism that just won't work in zsh.
> an incomplete list:
> - printf having a -v option (saves the output to a parameter).
> - relying on parameters like BASH_SOURCE, FUNCNAME
> - use of the bash builtins shopt, compopt and bind
> - bash's typeset -F option prints function names where as zsh's typeset -F sets the floating point attribute
It seems to not work.
Regarding to your advices, I put those lines:
emulate sh -o kshglob -c 'source /usr/share/bash-completion/bash_completion' 2>/dev/null
emulate sh -o kshglob -c 'source /usr/share/bash-completion/completions/ping6'
But when I try to complete from ping6 I have an error “command not
found: _init_completion”
--
Alarig Le Lay
Attachment:
signature.asc
Description: Digital signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author