bash get_cword: command not found

Bug #249337 reported by Fernando Miguel on 2008-07-17
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Undecided
Unassigned
kio-umountwrapper (Ubuntu)
Undecided
Unassigned
postfix (Ubuntu)
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

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) on 2008-07-17
Changed in postfix:
importance: Undecided → Wishlist
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)

criser (devel-god) wrote :

The attached patch solves the problem for me.

criser (devel-god) wrote :

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

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

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

Bryce Harrington (bryce) wrote :

Thanks, debdiff looks good. Uploaded.

Changed in bash-completion:
status: Confirmed → Fix Committed
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  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers