Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173577 - app-shells/bash: readline file completion does not work with multiple lines
Summary: app-shells/bash: readline file completion does not work with multiple lines
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-06 16:44 UTC by Brandon Mintern
Modified: 2017-01-20 22:31 UTC (History)
1 user (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 Brandon Mintern 2007-04-06 16:44:58 UTC
I have discovered that a multi-line echo command which should append to a file will not auto-complete when entering the filename.

e.g.
# echo "dev-lang/io ~*" >> /etc/po<TAB>pa<TAB>k<TAB>
correctly gives
# echo "dev-lang/io ~*" >> /etc/portage/package.keywords

but
# echo "dev-lang/io ~*
> dev-lisp/lush ~*" >> /etc/po<TAB>
does not auto-complete.

Reproducible: Always

Steps to Reproduce:
1. Type an echo command with a multi-line string, and attempt to pipe the output to an existing file...
2. Being sure to enter the filename using bash-completion.
Actual Results:  
Tab-completion failed.

Expected Results:  
Tab completion should have worked as it does with a single-line command.

# emerge -pv bash-completion

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-shells/bash-completion-20050121-r10
Comment 1 Mike Kelly (RETIRED) gentoo-dev 2007-05-06 22:56:30 UTC
Hi, what version of app-shells/bash are you using?
Comment 2 Brandon Mintern 2007-05-06 23:46:51 UTC
(In reply to comment #1)
> Hi, what version of app-shells/bash are you using?
> 

$ esearch bash
[snip]
*  app-shells/bash
      Latest version available: 3.1_p17
      Latest version installed: 3.1_p17
[snip]
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2009-02-20 14:05:26 UTC
Hi,
This is not actually a bash-completion problem at all. I suspect it will never work that way you want it, but maybe it is a readline issue? Just a guess.

@base-system: Is this even possible to fix or valid to report upstream?
Comment 4 SpanKY gentoo-dev 2012-11-05 16:19:19 UTC
wouldn't hurt to post to the bug-bash list and see what they have to say