Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285545 - app-shells/bash-completion-1.0-r5 unrar spits errors
Summary: app-shells/bash-completion-1.0-r5 unrar spits errors
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-19 12:07 UTC by Sergei Trofimovich (RETIRED)
Modified: 2009-09-19 22:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2009-09-19 12:07:38 UTC
[sf] ~:unrar<TAB> bash: _get_cword: command not found

[sf] ~:unrar x<TAB> bash: _get_cword: command not found
bash: _filedir: command not found

Reproducible: Always

Steps to Reproduce:
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-09-19 14:00:37 UTC
Works for me, what modules do you have enabled?
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2009-09-19 14:26:47 UTC
I think, unrar:

$ eselect bashcomp list
Available completions:
  [1]   accerso *
  [2]   adjutrix *
  [3]   apache2ctl
  [4]   base
  [5]   bitkeeper
  [6]   bittorrent
  [7]   brctl
  [8]   cabal-install *
  [9]   cksfv
  [10]  clisp
  [11]  cowsay
  [12]  cpan2dist
  [13]  darcs *
  [14]  dsniff
  [15]  eselect *
  [16]  freeciv
  [17]  gcl
  [18]  genkernel
  [19]  gentoo
  [20]  ghc *
  [21]  git *
  [22]  gkrellm
  [23]  gnatmake
  [24]  gpg2
  [25]  harbour
  [26]  importare
  [27]  instruo *
  [28]  isql
  [29]  larch
  [30]  layman
  [31]  lilypond
  [32]  lisp *
  [33]  lzma
  [34]  lzop
  [35]  mailman
  [36]  mcrypt
  [37]  minicom
  [38]  modules
  [39]  monodevelop
  [40]  mtx
  [41]  net-tools
  [42]  p4
  [43]  paludis *
  [44]  povray
  [45]  qdbus
  [46]  qemu
  [47]  qualudis
  [48]  quota-tools
  [49]  rdesktop
  [50]  reconcilio *
  [51]  repoman
  [52]  ri
  [53]  sbcl *
  [54]  sitecopy
  [55]  snownews
  [56]  ssh
  [57]  subversion *
  [58]  _subversion
  [59]  unace
  [60]  unrar *
  [61]  vim *
  [62]  xxd *
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-09-19 14:27:41 UTC
The problem should go away if you enable the base module, please try.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2009-09-19 17:05:54 UTC
Now, when I enable base I get following on every xterm start (sorry for russian locale):

bash: /home/slyfox/.bash_completion.d/base: line 157: syntax error in conditional expression: unexpected tok
bash: /home/slyfox/.bash_completion.d/base: line 157: ошибка синтаксиса около `@(d' (== syntax error near `@(d')
bash: /home/slyfox/.bash_completion.d/base: line 157: ` if [[ $1 == @(declare|typeset) ]]; then'


$ bash --version
GNU bash, version 4.0.28(2)-release (x86_64-pc-linux-gnu)
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2009-09-19 17:47:08 UTC
Oh, sorry

I sourced
    /etc/profile.d/bash-completion
instead of
    /etc/profile.d/bash-completion.sh
in my ~/.bashrc
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-09-19 22:42:49 UTC
yea, that changed some time ago. no worries from my side.