[Bash-completion-devel] [SCM] bash-completion branch, master, updated. 65d9348f3e5a31adf38ace19a3c1d4e6a302fe9e

David Paleino d.paleino at gmail.com
Sun May 24 07:51:34 UTC 2009


On Sun, 24 May 2009 10:48:10 +0300, Ville Skyttä wrote:

> On Saturday 23 May 2009, David Paleino wrote:
> > Hello,
> >
> > On Sat, 23 May 2009 08:45:49 +0000, Ville Skyttä wrote:
> > > The following commit has been merged in the master branch:
> > > commit 65d9348f3e5a31adf38ace19a3c1d4e6a302fe9e
> > > Author: Ville Skyttä <ville.skytta at iki.fi>
> > > Date:   Sat May 23 11:45:39 2009 +0300
> > >
> > >     Fix man completion (was broken by recent $UNAME/$USERLAND changes).
> >
> > How was that broken?
> > man(1) completion is working here, and I haven't yet pulled this commit.
> 
> $USERLAND is not set inside _man() when it runs (and it shouldn't be):
> 
> $ man + local cur prev sect manpath manext mansect UNAME
> + manext='@([0-9lnp]|[0-9][px]|man)?(.@(gz|bz2|lzma))'
> + mansect='@([0-9lnp]|[0-9][px])'
> + COMPREPLY=()
> ++ _get_cword
> ++ [[ 0 -eq 0 ]]
> ++ printf %s ''
> + cur=
> + prev=man
> + [[ man == -l ]]
> + _expand
> + [[ '' == \~*/* ]]
> + [[ '' == \~* ]]
> + [[ '' == */* ]]
> ++ uname -s
> + UNAME=Linux
> + UNAME=Linux
> + '[' = GNU -o Linux = FreeBSD -o Linux = Cygwin ']'
> bash: [: too many arguments
> 
> It could be that it worked before USERLAND was unset at the end of 
> bash_completion by another commit which I requested, perhaps you weren't 
> running with a version that had that commit applied?

Well:

$ grep BASH .bash*
.bashrc:export BASH_COMPLETION=/deb/git/bash-completion/bash_completion
.bashrc:export BASH_COMPLETION_DIR=/deb/git/bash-completion/contrib
$

And I tried man completion from within that session.

Nevermind :),
David

-- 
 . ''`.  Debian maintainer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://snipr.com/qa_page
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20090524/c0219f8b/attachment.pgp>


More information about the Bash-completion-devel mailing list