[Bug 703682] New: bash completion ignores CDPATH settings
https://bugzilla.novell.com/show_bug.cgi?id=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c0 Summary: bash completion ignores CDPATH settings Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: DOlsson@WEB.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 Having set CDPATH does not work with bash completion any more (worked in openSUSE 11.3). My CDPATH has been set to: :/home/dolsson:/home/dolsson/tmp:/home/dolsson/bin:/home/dolsson/sources:/home/dolsson/sources/ADMIN:/home/dolsson/sources/loke.local-net:/home/dolsson/sources/src:/home/dolsson/Documents in order to allow for an easy and fast access to my various directories using "cd" or "pushd". Now, when e.g. being in one of my development projects: $ pwd ~dolsson/.../branches/DBAG/packaging I want to get to my "Music" or "Documents" directory resp. their contents: $ cd M<tab> Makefile Hmmm, what about "cd Mu<tab>": $ cd Mu<tab> results in nothing -- not even with multiple <tab>s, nor does $ cd D<tab> work. Under openSUSE 11.3, I would have gotten $ cd Mu<tab> => cd Music/ resp. $ cd D<tab> => <nothing>, but $ cd D<tab><tab> => Desktop Documents Downloads Reproducible: Always Steps to Reproduce: 1. A freshly install openSUSE 11.4 2. Login as a normal (or root) user 3. Setup CDPATH, e.g. CDPATH=.:~:~/sources 4. Do: cd /tmp cd so<tab> -or- cd so<tab><tab> and observe that this is neither expanded to "sources/" nor is a list of choices presented (by double <tab>). Actual Results: $ cd so<tab> -or- $ cd so<tab><tab> results in nothing. Expected Results: $ cd so<tab> => $ cd sources/ -or- $ cd so<tab><tab> => sources something In completion under openSUSE 11.3 respected the setting of CDPATH as documented in bash manual. -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |werner@novell.com |ovo.novell.com | -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c1 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |DOlsson@WEB.de Severity|Major |Minor --- Comment #1 from Dr. Werner Fink <werner@novell.com> 2011-07-05 08:16:37 UTC --- Nothing major. Please deinstall bash-completion and install the latest update of aaa-base and retest. -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c2 Dennis Olsson <DOlsson@WEB.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|DOlsson@WEB.de | --- Comment #2 from Dennis Olsson <DOlsson@WEB.de> 2011-07-05 11:45:17 CEST --- Hhmmm, this might be a minor issue for you, but for me it is major, while I cannot work with this setup! Anyway, according to YaST2 and zypper, I am using the latest version of "aaa-base": aaa_base-11.4-54.68.1.x86_64 aaa_base-extras-11.4-54.68.1.x86_64 Are these the newest ones? Just to be sure, I have de- and reinstalled the "aaa_base-extras" package, but this has not resulted in a working completion. PS: A correction to comment 1: It worked in openSUSE 11.1 (I do not have openSUSE 11.3!). -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c3 --- Comment #3 from Dr. Werner Fink <werner@novell.com> 2011-07-05 09:49:03 UTC --- As a temporary workaround you may disable the completion for the cd command that is: complete -r cd but this cause other side effects. -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c4 --- Comment #4 from Dennis Olsson <DOlsson@WEB.de> 2011-07-05 12:02:20 CEST --- I have just tried to install the "/etc/profile.d/complete.bash" that I used on openSUSE 11.1. To my surprise this one does not work either under openSUSE 11.4 -- i.e. even with this one the "CDPATH" variable is not being respected. Consequently, I have therefore tried using my old openSUSE 11.1 environment and have here discovered that under openSUSE 11.1 1) It was not possible to get "cd [pushd] Mu<tab>" to produce "cd [pushd] Music" either. 2) But, "pushd Music" worked, i.e. I would end up in "~/Music" no matter from where I came. Ad (1) is in other words working as I am used to (although it would be nice, it is would work as described in comment 0). Ad (2) is different from openSUSE 11.4, where I only get "-bash: pushd [cd]: Music: No such file or directory"! Seems that bash version 3.2.39(1)-release (openSUSE 11.1) differs with 4.1.10(1)-release (openSUSE 11.4) about how to respect CDPATH or not. -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c5 --- Comment #5 from Dennis Olsson <DOlsson@WEB.de> 2011-07-05 12:07:09 CEST --- Reply to comment 3: $ echo $CDPATH :/home/dolsson:/home/dolsson/tmp:/home/dolsson/bin:/home/dolsson/sources:/home/dolsson/sources/ADMIN:/home/dolsson/sources/loke.local-net:/home/dolsson/sources/src:/home/dolsson/Documents $ pwd /home/dolsson/G+HNetzwerk-Design/Development/GuHSystemTools/GuHAccessControl/trunk/packaging $ complete -r cd $ cd ADMIN -bash: cd: ADMIN: No such file or directory $ pushd ADMIN -bash: pushd: ADMIN: No such file or directory $ cd sources -bash: cd: sources: No such file or directory $ pushd sources -bash: pushd: sources: No such file or directory $ ll -d ~/sources/ADMIN drwxr-s--- 4 dolsson staff 4096 Feb 21 2010 /home/dolsson/sources/ADMIN -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c6 --- Comment #6 from Dennis Olsson <DOlsson@WEB.de> 2011-07-05 12:09:52 CEST --- Using openSUSE 11.1: $ bash --version GNU bash, version 3.2.39(1)-release (x86_64-suse-linux-gnu) Copyright (C) 2007 Free Software Foundation, Inc. $ echo $CDPATH :/home/dol:/home/dol/tmp:/home/dol/bin:/home/dol/sources:/home/dol/sources/ADMIN:/home/dol/sources/loke.local-net:/home/dol/sources/src:/home/dol/Documents $ pwd /home/dol/sources/src/dot-files/user $ to ADMIN 0: ~/sources/ADMIN 1: ~/sources/src/dot-files/user 2: ~ 3: ~/sources/src/dot-files/root $ -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c7 --- Comment #7 from Dr. Werner Fink <werner@novell.com> 2011-07-05 17:58:08 UTC --- (In reply to comment #5) this is how bash behaves without any completion extension: werner@boole:~> mkdir -p /tmp/hugo/foo werner@boole:~> complete -r cd werner@boole:~> CDPATH=.:~:/tmp/hugo werner@boole:~> cd foo /tmp/hugo/foo werner@boole:/tmp/hugo/foo> nothing more and nothing less, no builtin tab completion. -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c8 --- Comment #8 from Dennis Olsson <DOlsson@WEB.de> 2011-07-06 12:16:56 CEST --- Ehh - Why does it work for you, but not for me? OK, after some testing, I found that in ".bashrc", I had: export CDPATH="${CdPath}" (CdPath is a working variable containing the (dynamically) directory setup). Removing the "export" make things work as they should. Thanks for the pointer. -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c9 --- Comment #9 from Dennis Olsson <DOlsson@WEB.de> 2011-07-06 12:18:23 CEST --- Regrading <tab> completion, any chance that it would be possible to have CDPATH been taken into consideration, when evaluating the <tab> completion? -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c10 --- Comment #10 from Dr. Werner Fink <werner@novell.com> 2011-07-06 10:27:55 UTC --- Created an attachment (id=438507) --> (http://bugzilla.novell.com/attachment.cgi?id=438507) /etc/profile.d/complete.bash Just give this /etc/profile.d/complete.bash a try -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c11 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |DOlsson@WEB.de --- Comment #11 from Dr. Werner Fink <werner@novell.com> 2011-07-06 10:28:24 UTC --- see comment #10 -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c12 Dennis Olsson <DOlsson@WEB.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|DOlsson@WEB.de | --- Comment #12 from Dennis Olsson <DOlsson@WEB.de> 2011-07-06 13:35:29 CEST --- Many thanks -- seems to work as intended. Just, in my case, I am using "to" / "ot" (aliases for "pushd" / "popd"), which (naturally) prevents the logic from working in my case. But, by adding the word "to" in lines #110 & #191, it works even for me. :-) Will this "update" of "/etc/profile.d/complete.bash" be released as an update later on? -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c13 --- Comment #13 from Dennis Olsson <DOlsson@WEB.de> 2011-07-06 13:55:00 CEST --- Ops -- I believe, I was a tad too fast there in testing... olsson@denmark(pts/5):~/tmp 13:52:26 8223 >to A<tab> ADMIN/ ApacheDirectoryStudio-linux-x86_64-1.5.2.v20091211/ dolsson@denmark(pts/5):~/tmp 13:52:26 8223 >to ADMIN/ bash: pushd: ADMIN/: No such file or directory dolsson@denmark(pts/5):~/tmp 13:52:31 8224 >to ADMIN bash: pushd: ADMIN: No such file or directory dolsson@denmark(pts/5):~/tmp 13:52:37 8225 >pushd ADMIN/ bash: pushd: ADMIN/: No such file or directory dolsson@denmark(pts/5):~/tmp 13:52:45 8226 >cd A<tab> ADMIN/ ApacheDirectoryStudio-linux-x86_64-1.5.2.v20091211/ dolsson@denmark(pts/5):~/tmp 13:52:45 8226 >cd ADMIN/ bash: cd: ADMIN/: No such file or directory The completion works, but one cannot get to the directory. How come?? -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c14 --- Comment #14 from Dennis Olsson <DOlsson@WEB.de> 2011-07-06 13:57:44 CEST --- FYI: $ ll ~/sources/ADMIN -d drwxr-s--- 4 dolsson staff 4096 Feb 21 2010 /home/dolsson/sources/ADMIN -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c15 --- Comment #15 from Dr. Werner Fink <werner@novell.com> 2011-07-06 14:03:59 UTC --- Can not reproduce werner@boole:/sandbox> CDPATH=.:~:/tmp/hugo werner@boole:/sandbox> pushd foo/ /tmp/hugo/foo /tmp/hugo/foo /sandbox werner@boole:/tmp/hugo/foo> mkdir ~/sources/ADMIN werner@boole:/tmp/hugo/foo> CDPATH=.:~:~/sources werner@boole:/tmp/hugo/foo> pushd ADMIN/ /suse/werner/sources/ADMIN ~/sources/ADMIN /tmp/hugo/foo /sandbox werner@boole:~/sources/ADMIN> chmod 2750 . werner@boole:~/sources/ADMIN> ll . total 0 werner@boole:~/sources/ADMIN> ll . -d drwxr-s--- 2 werner suse 4096 Jul 6 15:58 . werner@boole:~/sources/ADMIN> werner@boole:~/sources/ADMIN> werner@boole:~/sources/ADMIN> popd /tmp/hugo/foo /sandbox werner@boole:/tmp/hugo/foo> pushd ADMIN/ /suse/werner/sources/ADMIN ~/sources/ADMIN /tmp/hugo/foo /sandbox avoid exporting CDPATH -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c16 --- Comment #16 from Dr. Werner Fink <werner@novell.com> 2011-07-06 14:14:13 UTC --- IMHO this one is fixed, and it is submitted to factory. -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c17 --- Comment #17 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-07-06 17:00:24 CEST --- This is an autogenerated message for OBS integration: This bug (703682) was mentioned in https://build.opensuse.org/request/show/75539 Factory / aaa_base -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c18 --- Comment #18 from Dennis Olsson <DOlsson@WEB.de> 2011-07-06 18:45:05 CEST --- Well, I have stopped exporting CDPATH, but it still does not work. Strangely enough, though, it works, if I start a sub-shell, it works. I.e. just after having logged in: login: dolsson .. $ cd AD<tab> $ cd ADMIN/bash: cd: ADMIN/: No such file or directory $ bash $ cd AD<tab> $ cd ADMIN/ /home/dolsson/sources/ADMIN Do not get this!! Do you have an idea of what the problem could be respectively what I should be looking for? Many thanks in advance for your input. -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c19 --- Comment #19 from Dr. Werner Fink <werner@novell.com> 2011-07-07 07:09:07 UTC --- After installation of /etc/profile.d/complete.bash you have to (re)source the file with . /etc/profile.d/complete.bash otherwise the current shell does not know about the new shell completion. Next is that normally /etc/bash.bashrc and therefore also /etc/profile.d/complete.bash will be sourced by any interactive shell that is *not* a login shell. This is the reason why in /etc/profile there exist some lines of shell code to source /etc/bash.bashrc if and only if the variable _SOURCED_FOR_SSH is not set or empty (as ssh does not cause a login a login shell and we do not want a reading loop between /etc/profile and /etc/bash.bashrc) -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c20 --- Comment #20 from Dennis Olsson <DOlsson@WEB.de> 2011-07-07 09:32:43 CEST --- Well, yes, I am aware of this and thus have inserted "echo" statements at begin and end of the "/etc/profile.d/complete.bash", just as I logged completely out and back in to my GUI. Result was that the "/etc/profile.d/complete.bash" does indeed (as expected) get read during an initial login, just as it gets read during running of a sub-shell. Ohh, BTW, when doing a "ssh dolsson@denmark", this login shell, too, cannot do any "cd ADMIN/", but a sub-shell started from here can. Seems to be a problem with my ".profile" -- Will be checking up on this later today. Anyway, thanks for your hints. -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c21 --- Comment #21 from Dennis Olsson <DOlsson@WEB.de> 2011-07-07 17:00:53 CEST --- Pyyhh, that was a hard one. It turns out that the bash v3.2.39(1)-release used in openSUSE 11.1 and the current v4.1.10(1)-release differ in how they handle the "set -p" option setting. When turned on only the "SHELLOPTS" variable was ignored in v3, whereas in v4 the variables "BASHOPTS", "CDPATH", and "GLOBIGNORE" have been added to the list of ignored variables. And, as my "/etc/profile.local" was issuing a "set -p" for "bash"... My own fault. ;-) Thanks for your patience with me. :-) -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c22 Dennis Olsson <DOlsson@WEB.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #22 from Dennis Olsson <DOlsson@WEB.de> 2011-07-07 17:02:02 CEST --- PS: Although your fixes have been committed to factory, will there also be an update 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c23 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro@suse.com --- Comment #23 from Dr. Werner Fink <werner@novell.com> 2011-07-08 15:17:35 UTC --- As the aaa_base maintainer is also covered by this add him to CC. Maybe the solution in included on next update of aaa_base. -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c24 Dennis Olsson <DOlsson@WEB.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #24 from Dennis Olsson <DOlsson@WEB.de> 2011-07-13 18:05:32 CEST --- Sorry, Werner, to bother you once again, but it seems that the completion is doing a bit too much, when using the <tab> expander: $ ll ../../../ total 12 drwx------ 36 dolsson users 4096 Jul 13 17:47 apps drwx------ 2 dolsson users 4096 Jul 1 09:33 autostart drwx------ 4 dolsson users 4096 Jul 13 17:45 config $ cd ../../../<tab> ApacheDirectoryStudio/ .gimp-2.6/ .mozilla/ thumbnails/ Public/ dev/ proc/ VirtualBox/ .gkrellm2/ .novell/ vim/ Repositories/ dolsson/ public_html/ adobe/ .gnome2/ .oces2/ xine/ Templates/ etc/ root/ cddb/ .gnome2_private/ .oit/ Desktop/ Videos/ home/ sbin/ config/ .gnupg/ .ooo3/ Documents/ app-defaults/ lib/ selinux/ cups/ .gstreamer-0.10/ .pulse/ Downloads/ apps/ lib64/ sources/ dbus/ .gvfs/ .shell_setup/ Eclipse/ autostart/ lost+found/ srv/ dia/ .java/ .skel/ G+HNetzwerk-Design/ bin/ media/ sys/ dirstack/ .kde4/ .ssh-agent/ GWArchive/ boot-os111/ mnt/ tmp/ fontconfig/ .libreoffice/ .ssh/ Music boot/ net/ usr/ gconf/ .local/ .subversion/ Music/ config/ opt/ var/ gconfd/ .macromedia/ .teamviewer/ Pictures/ data/ private/ virtual/ where I was only expecting: apps/ autostart/ config/ or like this: $ ls / bin boot boot-os111 data dev etc home lib lib64 lost+found media mnt net opt private proc root sbin selinux srv sys tmp usr var virtual $ cd /<tab> Display all 164 possibilities? (y or n) $ # ????, but there is only 25 entries in /!!! To me, it seems that even in cases, where you are using a relative or absolute path the full CDPATH is being taken into consideration. This is definitively overkill and surely not the way I had expected the completion to work. I would say that the CDPATH should only be regarded, when using: $ cd (-or- pushd) <tab> $ cd (-or- pushd) <char(s)><tab> but not when doing $ cd ./<tab> or $ cd ../<tab> etc. In other words, completion should only consider CDPATH in cases, where the used path to be completed does not already contain a relative or absolute path reference. Agree? -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c25 --- Comment #25 from Dennis Olsson <DOlsson@WEB.de> 2011-07-14 12:47:40 CEST --- Created an attachment (id=439928) --> (http://bugzilla.novell.com/attachment.cgi?id=439928) Patch fixing issue with "cd ./<tab>" and "cd ../<tab>". Werner, attached, please, find a patch to "/etc/profile.d/complete.bash", which fixes the problem in described in comment 24. Hope you will agree with this patch and include this in the final version of "/etc/profile.d/complete.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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c Dennis Olsson <DOlsson@WEB.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #439928|application/octet-stream |text/plain mime type| | -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c26 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #26 from Dr. Werner Fink <werner@novell.com> 2011-07-14 13:44:55 UTC --- fixed with slightly different patch -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c27 --- Comment #27 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-07-14 16:00:28 CEST --- This is an autogenerated message for OBS integration: This bug (703682) was mentioned in https://build.opensuse.org/request/show/76255 Factory / aaa_base -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c28 --- Comment #28 from Dennis Olsson <DOlsson@WEB.de> 2011-07-15 07:30:01 UTC --- HHmm, just out of curiosity, instead of the "case "$c" in..." statement, would: [[ "$c" =~ ^\..* ]] || let cdpath++ not have accomplished the same, but looking slight neater? ;-) -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c28 --- Comment #28 from Dennis Olsson <DOlsson@WEB.de> 2011-07-15 09:30:01 CEST --- HHmm, just out of curiosity, instead of the "case "$c" in..." statement, would: [[ "$c" =~ ^\..* ]] || let cdpath++ not have accomplished the same, but looking slight neater? ;-) -- 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=703682 https://bugzilla.novell.com/show_bug.cgi?id=703682#c29 Dennis Olsson <DOlsson@WEB.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #439928|0 |1 is obsolete| | --- Comment #29 from Dennis Olsson <DOlsson@WEB.de> 2011-07-15 09:49:20 CEST --- Created an attachment (id=440255) --> (http://bugzilla.novell.com/attachment.cgi?id=440255) Suggested patch using regexp fixing issue with CDPATH used for local paths Patch relative to you newest fix. I do not know how you see this, but I find this construct looks nicer. ;-) -- 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.
participants (1)
-
bugzilla_noreply@novell.com