Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125173 - bash-completion gives "bad substitution" in some cases
Summary: bash-completion gives "bad substitution" in some cases
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-05 22:21 UTC by Justin Sanchez
Modified: 2008-12-18 23:01 UTC (History)
2 users (show)

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 Justin Sanchez 2006-03-05 22:21:32 UTC
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r2, 2.6.15.2 i686)
=================================================================
System uname: 2.6.15.2 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r1, 2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fomit-frame-pointer -pipe"
DISTDIR="/pub/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ "
LC_ALL="en_US.utf8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X X509 Xaw3d a52 aac aalib acl acpi aim alsa apache2 apm arts asterisk audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 canna cdda cddb cdparanoia cdr cdrom cjk clamav crypt cscope cups curl db2 dga doc dv dvd dvdr dvdread eds emboss encode escreen esd ethereal evo exif expat faac faad fam fame festival ffmpeg flac foomaticdb fortran fping freetype ftp gd gdbm gif gimp gimpprint gkrellm glut gmp gnome gnomedb gnuplot gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml guile hal idn imagemagick imap imlib immqt-bc ipv6 irda jabber jack java jpeg junit kde latex lcms ldap libcaca libg++ libgdb libwww lirc live lzo lzw mad matroska mbox mbrola mhash mikmod mjpeg mmx mmx2 mmxext mng motif mozilla mp3 mpeg mpeg4 mplayer mysql mythtv ncurses net netbeans nethack network nls nptl nptlonly nvidia ocaml oci8 odbc offensive ogg oggvorbis openal opengl oracle7 oss pam pcre pda pdf pdflib pel perl php png pnp postgres ppds print python qt quicktime rar readline real recode rtc ruby samba scanner sdl serial silc slang sndfile snmp soap sockets sox spamassassin speex spell sse sse2 ssl stroke subject-rewrite subtitles svga sysvipc tcltk tcpd tetex tga theora threads tiff timidity transcode truetype truetype-fonts trusted type1 type1-fonts udev unicode usb v4l v4l2 videos vim vorbis win32codecs wmf wxwindows xanim xine xinerama xinetd xml xml2 xmms xrandr xsl xv xvid xvmc yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS


I'm using app-shells/bash-3.1_p10


bash-completion 20050121-r10 and 20060301 both have this problem

I type exactly this:

for word in foo bar; do echo "`echo "$word" | ~/bin/som

then hit TAB, and I get this error: 
bash: bad substitution: no closing "`" in `echo $word | ~/bin/

Expected would have been tab completion of ~/bin/something.pl

not a huge thing, but its a bug, so bug report.
Comment 1 Santiago M. Mola (RETIRED) gentoo-dev 2008-12-18 23:01:06 UTC
With 20081218 it still doesn't do completion in this case but, at least, it doesn't give any error.

Feature requests and patches for adding this functionality can be sent to upstream: http://bash-completion.alioth.debian.org/.

Thanks for reporting and sorry for the huge delay.