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.
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 ***
(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.
(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.
(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)
(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).
(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.
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