bash get_cword: command not found

Bug #249337 reported by Fernando Miguel
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Fix Released
Undecided
Unassigned
kio-umountwrapper (Ubuntu)
Invalid
Undecided
Unassigned
postfix (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

Binary package hint: bash

while trying to use TAB to auto-complete postfix, I get this errors:

# postfix bash: get_cword: command not found
bash: get_cword: command not found

abort check flush reload start stop
root# postfix flbash: get_cword: command not found
bash: get_cword: command not found

abort check flush reload start stop
root# postfix flusbash: get_cword: command not found
bash: get_cword: command not found

abort check flush reload start stop
root# postfix flush

# bash --version
GNU bash, version 3.2.39(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

postfix version: 2.5.2-1

description: updated
Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

Umount aint any better:

/$ umount / «TAB TAB»
/lib/i
it/rw
/proc
/sys
/var/ru

/var/lock
/dev
/dev/shm
/dev/pts
/sys/fs/fuse/co

ectio
s
/home
/sys/ker
el/security
/proc/sys/fs/bi
fmt_misc
/home/b
do/.gvfs

LaMont Jones (lamont)
Changed in postfix:
importance: Undecided → Wishlist
Revision history for this message
emil.s (emil.s) wrote :

I can confirm this.

On a completely new installation of Intrepid:
root@sandnabba: ~ #> /etc/init.d/postfix *tab-tab* bash: get_cword: command not found
bash: get_cword: command not found

abort check flush reload start stop
root@sandnabba: ~ #> /etc/init.d/postfix

Postfix: Version: 2.5.5-1
root@sandnabba: ~ #> bash --version
GNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu)

Revision history for this message
criser (devel-god) wrote :

The attached patch solves the problem for me.

Revision history for this message
criser (devel-god) wrote :

This patch should fix both, the postfix and the umount issue.

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Confirming this for Intrepid and for Jaunty. It's a problem in bash-completion and the patch criser created fixes both problems. I will make a debdiff for Jaunty. Thanks for your work.

Changed in bash-completion:
status: New → Confirmed
Changed in kio-umountwrapper:
status: New → Invalid
Changed in postfix:
status: New → Invalid
Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Here is the debdiff to patch the current version of bash-completion in Jaunty

Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks, debdiff looks good. Uploaded.

Changed in bash-completion:
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bash-completion - 20060301-4ubuntu3

---------------
bash-completion (20060301-4ubuntu3) jaunty; urgency=low

  * Fix IFS issue in _umount and correct _get_cword in _postfix (LP: #249337)

 -- Martin Mai <email address hidden> Sun, 28 Dec 2008 13:31:39 +0000

Changed in bash-completion:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.