Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 432338 - app-shells/bash[-readline] installs config files that use readline options
Summary: app-shells/bash[-readline] installs config files that use readline options
Status: RESOLVED FIXED
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: 2012-08-22 18:10 UTC by Agostino Sarubbo
Modified: 2012-08-23 17:34 UTC (History)
0 users

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 Agostino Sarubbo gentoo-dev 2012-08-22 18:10:42 UTC
With -readline we have a result like this:

Before: amd64box ~ # 
After: -bash: shopt: histappend: invalid shell option name
\[\]amd64box\[\] ~ #\[\] 


Proposed solutions:

1)Install a specific config when the user wants [-readline]
2)Remove readline IUSE and use the support always.
Comment 1 SpanKY gentoo-dev 2012-08-22 18:55:55 UTC
err, no, you disabled readline support and then tried to use functionality that bash provides when readline is enabled.  don't try to use those functions and you won't see any errors.

this is like saying "i built the gd graphics package with USE=-png, and now it reports an error 'unsupported file type' whenever i try to open a .png, therefore the USE=-png flag is broken".

or "i built vlc with USE=-flac, and when i try to play flac audio files, vlc tells me it's an unknown file format".

*** This bug has been marked as a duplicate of bug 414595 ***
Comment 2 Agostino Sarubbo gentoo-dev 2012-08-22 21:23:41 UTC
(In reply to comment #1)
> err, no, you disabled readline support and then tried to use functionality
> that bash provides when readline is enabled.  don't try to use those
> functions and you won't see any errors.
> 
> this is like saying "i built the gd graphics package with USE=-png, and now
> it reports an error 'unsupported file type' whenever i try to open a .png,
> therefore the USE=-png flag is broken".
> 
> or "i built vlc with USE=-flac, and when i try to play flac audio files, vlc
> tells me it's an unknown file format".

Sorry, I don't think the same. I want to use bash with -readline, but the default configuration installed uses readline. it makes sens for you?

I don't said that I want to use bash[-readline] with readline bash configuration.
Comment 3 SpanKY gentoo-dev 2012-08-22 21:44:26 UTC
(In reply to comment #2)

that's a fair point.  does deleting 'shopt -s histappend' from /etc/bash/bashrc solve all the issues you noticed ?  if not, please list the others.
Comment 4 Agostino Sarubbo gentoo-dev 2012-08-22 22:53:25 UTC
(In reply to comment #3)
> (In reply to comment #2)
> 
> that's a fair point.  does deleting 'shopt -s histappend' from
> /etc/bash/bashrc solve all the issues you noticed ?  if not, please list the
> others.

Does not work.

- Apart the: \[\] before and after $hostname, the tab completion does not work.

- After trying tab completion, backspace does not work too.

- ctrl-l to clean the shell does not work too.

- there is no history when you press the '↑'

- all arrows does not work

probably there are other issues.

I think you can reproduce it compiling bash with -readline (I can reproduce it on all machines)
Comment 5 SpanKY gentoo-dev 2012-08-22 23:13:43 UTC
(In reply to comment #4)

other than the default prompt, none of the things you cite are bugs.  readline provides all that functionality that you describe.  you can't expect line editing to work if you disabled line editing (i.e. readline).
Comment 6 Agostino Sarubbo gentoo-dev 2012-08-22 23:35:00 UTC
(In reply to comment #5)
> (In reply to comment #4)
> 
> other than the default prompt, none of the things you cite are bugs. 
> readline provides all that functionality that you describe.  you can't
> expect line editing to work if you disabled line editing (i.e. readline).

I will check if there are no-readline related bugs. FYI i just discovered the bug, but I'm using readline.
Comment 7 SpanKY gentoo-dev 2012-08-23 01:18:05 UTC
Commit message: Disable readline-specific options in bashrc when USE=-readline
http://sources.gentoo.org/app-shells/bash/bash-4.2_p37.ebuild?r1=1.5&r2=1.6