[Bug 752422] New: bash: path completion converts paths to absolute
https://bugzilla.novell.com/show_bug.cgi?id=752422 https://bugzilla.novell.com/show_bug.cgi?id=752422#c0 Summary: bash: path completion converts paths to absolute Classification: openSUSE Product: openSUSE 12.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jslaby@suse.com QAContact: qa-bugs@suse.de CC: werner@suse.com Found By: --- Blocker: --- cd /home ls xsla<TAB> ls xslaby/<TAB> ls /home/xslaby/<TAB> <-- WTF? $ rpm -qf /etc/bash_completion.d/*|sort -u dbus-1-glib-0.98-4.2.x86_64 dconf-0.11.5-1.4.x86_64 git-core-1.7.9.2-1.1.x86_64 glib2-tools-2.31.18-1.1.x86_64 grub2-1.99-16.1.x86_64 PackageKit-0.7.2-2.2.x86_64 scout-0.1.0-48.2.noarch systemd-43-3.1.x86_64 yast2-2.22.4-1.2.x86_64 zypper-1.7.0-4.1.x86_64 -- 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=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c1
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c2
Jiri Slaby
I know but this is how the complete works you're using the programmable complete with the +plusdirs option.
If you do not like this then please use
complete -r
to be without any programmable complete. Please if you're knowing a solution which works for all cases then please reopen.
Nope, that is a different issue: $ cd /home/ $ complete -r $ ls xsla<TAB> $ ls xslaby/<TAB> $ ls /home/xslaby/<TAB> Note that it used to work till some recent update. -- 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=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c3
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c4
--- Comment #4 from Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c5
--- Comment #5 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c6
--- Comment #6 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c7
--- Comment #7 from Jiri Slaby
That is clear because bash from 12.1 does not include the patch for bug #725657. With this patch the new shell option direxpand is active ... you may try
shopt -u direxpand
to disable directory name expansion
Yes, that did the trick. But what side-effects this has?
but then you may see the new upstream behaviour reported in bug #725657.
Maybe they should revert the patches which introduced that...
Btw: Who is expecting what? Why does upstream change the behaviour?
Expanding to absolute paths is totally bogus. I don't understand what kind of idiots from upstream came with that up as a default. It's total crap. For example, you cannot build particular .o files inside some build tree anymore. E.g. with kernel this used to work: make kernel/mo<TAB><BACKSPACE>o but now, it expands to mess. And there is another POV, the cosmetic one: $ cd /l/latest/repos/clang/lib/StaticAnalyzer $ ls Check<TAB> $ ls /l/latest/repos/clang/lib/StaticAnalyzer/Checkers/ This is a parse error for my brain. Should I complain to upstream, i.e. is this purely an upstream issue? -- 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=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c8
--- Comment #8 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c9
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c10
--- Comment #10 from Jiri Slaby
You may vote upstream for the patch becoming part of the bash main line.
So if I understand correctly, the patch is not upstream yet? Then it is better than I thought.
Nevertheless you may also try the latest complete.bash see attachment #481767
This works! Thanks. -- 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=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c11
--- Comment #11 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c12
--- Comment #12 from Jiri Slaby
Without the final patch bug #725657 is not fixed. Then it may work for as `expected' for you but what about all the others which complains about not expanding variables on completion?
But now I have bash from factory with the latest complete.bash and everything works as expected for me. IIUC with the patch from bug #725657. I.e. for me this works: $ echo $PWD/<TAB> $ echo /home/xslaby/ and this too: $ cd /home $ ls xsl<TAB> $ ls xslaby/<TAB> Display all 427 possibilities? (y or n) So I think you solved both the issues. Or am I missing something? -- 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=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c13
--- Comment #13 from Sebastian Siebert
https://bugzilla.novell.com/show_bug.cgi?id=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c14
--- Comment #14 from Sebastian Siebert
https://bugzilla.novell.com/show_bug.cgi?id=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c15
--- Comment #15 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c17
--- Comment #17 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c18
--- Comment #18 from Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=752422
https://bugzilla.novell.com/show_bug.cgi?id=752422#c19
Dr. Werner Fink
participants (1)
-
bugzilla_noreply@novell.com