[Bug 725657] New: bash completion $PWD wrong
https://bugzilla.novell.com/show_bug.cgi?id=725657 https://bugzilla.novell.com/show_bug.cgi?id=725657#c0 Summary: bash completion $PWD wrong Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- Blocker: --- # rpm -q bash bash-4.2-35.2.x86_64 typing echo $PWD/<TAB> "expands" to echo \$PWD/ ^ ^ ^ and does not expand $PWD to it's value as expected (and as in every bash up to opensuse 11.4). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c1
--- Comment #1 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c2
Harald Koenig
I've reported that upstream to bug-bash@gnu.org with "bashbug" -- stay tuned...
and I already got an answer from Chet Ramey: Yes. Look at the bug-bash list archives for extensive discussion on this topic. There will be several changes and fixes in the next bash release to address this and other completion issues. and later: If you read further in that thread, you'll find a message I sent out on 9/2 containing a patch that adds a `direxpand' option. The new option is intended to restore the bash-4.1 behavior of performing word expansion on variables in directory names when completing. It works pretty well; there are a couple of rough edges that will be worked out. Look for <4E612F5B.5040003@case.edu>. which is http://lists.gnu.org/archive/html/bug-bash/2011-09/msg00007.html with his patch http://lists.gnu.org/archive/html/bug-bash/2011-09/txtbfgKuDx2Eo.txt and shopt -s direxpand bash-4.2 again works fine like in the good old days -- hooray!!! <PLEASE> add that bash patch and "shopt -s direxpand" in the login setup for 12.1-final !!!!!!!!!!!!!!! </PLEASE> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c3
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c4
--- Comment #4 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c5
robert spitzenpfeil
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c6
Mark Gonnelly
I'm using tumbleweed.
mark@triona:~/Desktop> rpm -qa | grep bash bash-lang-4.2-118.1.noarch bash-4.2-118.1.x86_64 bash-doc-4.2-118.1.noarch I can confirm that tab completion of executables in the working directory is now broken. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c7
Jon Nelson
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c8
--- Comment #8 from Jon Nelson
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c9
--- Comment #9 from Jon Nelson
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c10
Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c11
Rich Coe
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c12
--- Comment #12 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c13
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c14
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c15
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c16
--- Comment #16 from Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c17
--- Comment #17 from Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c18
--- Comment #18 from Harald Koenig
Still the same with
openSUSE 12.2 Milestone 0 (x86_64) VERSION = 12.2 CODENAME = Mantis
zypper dup is running atm.
on all relevant systems I'm still using bash-4.1 as login shell (as /usr/local/bin/bash) which is not broken. I did not try to reply the /bin/bash in suse 12.1 with version 4.1 so far if there are any system scripts which might use 4.2-specific stuff ?! recently I've checked the official bash patcesh again (newest was bash42-020) but that issue is still not fixed after *one*year* :-(( maybe just step back to 4.1, or think about ash/zsh/dash/anynonbash ? just my 2 cents... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c19
--- Comment #19 from Lars Müller
From the package change log we know:
* Fr Nov 25 2011 werner@suse.de - Update bash 4.2 to patch level 20 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c20
--- Comment #20 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c21
Sebastian Siebert
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c22
--- Comment #22 from Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c23
--- Comment #23 from Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c24
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c25
--- Comment #25 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c26
--- Comment #26 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c
Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c27
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c28
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c29
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c30
--- Comment #30 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c31
Ashwin G
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c32
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c33
Ashwin G
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c34
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c35
--- Comment #35 from Christoph Bartoschek
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c36
--- Comment #36 from Ashwin G
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c37
Ashwin G
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c38
Dr. Werner Fink
complete -r . /etc/profile.d/complete.bash complete -p | grep -E '[[:blank:]]cd' complete -o bashdefault -o default -o dirnames -o nospace -o plusdirs -F _cd_ cd complete -o bashdefault -o default -o dirnames -o nospace -o plusdirs -F _cd_ ls ls $PWD<TAB> ls /usr/src/werner/mandb/
as you can see, I'm currently working on an update of the package man. And be aware that the complete shell function _cd_ from /etc/profile.d/completion.bash is written for directory expansion only. Have a look on the shell function _cd_ in /etc/profile.d/completion.bash to see how programmable bash completion is working and please note that even with those verious distinctions of cases there is alway a usecase which you will miss. Beside this for interactive shell I prefere tcsh as here completion is done very easily and without the nightmare the high flexible but extrem fragile completion feature of the bash. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c39
--- Comment #39 from Ashwin G
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c40
--- Comment #40 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725657
https://bugzilla.novell.com/show_bug.cgi?id=725657#c41
--- Comment #41 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com