bash: words: bad array subscript
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash-completion (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
cd to your $HOME and without entering anything at the prompt, hit TAB. I get the error in the Subject.
The bug seems obvious: in /usr/share/
[[ $cword -eq 0 ]] && return 1
but `set -x` in a bash and doing the above shows $cword to be -1, thus the following line (711):
prev=
fails with the error.
The fix is easy. s/-eq/-le/ on 710.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: bash-completion 1:2.1-2ubuntu2 [modified: usr/share/
ProcVersionSign
Uname: Linux 3.13.0-16-generic x86_64
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Mar 7 16:37:37 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-12-06 (91 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
PackageArchitec
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install)
Attached png image. wiki.ubuntu. com/BugSquad
---
Ubuntu Bug Squad volunteer triager
http://