[Bug 1372286] Re: unwanted space after directory completion (probably old cruft after upgrades)

2014-12-18 Thread Peter Cordes
> Sorry for not getting back earlier. No worries. Glad you got your systems sorted. Not closing this bug, because your problem wasn't this bug after all.. >.< I still want to leave this bug here for the purpose I editted the OP to. > Nonetheless I'd like to know if there is way to detect if ba

[Bug 1372286] Re: unwanted space after directory completion (probably old cruft after upgrades)

2014-12-18 Thread latimerio
Sorry for not getting back earlier. I think I have found the cause for the problem at our site. As I said we have a mixed environment with different versions of ubuntu and redhat. In our common bashrc there is a check if the variable $BASH_COMPLETION is set. On Redhat and until ubuntu 12 this va

[Bug 1372286] Re: unwanted space after directory completion (probably old cruft after upgrades)

2014-12-10 Thread Peter Cordes
still can't reproduce. Is there any chance /nfs/AppServer/applics sometimes looks like a broken symlink? Do you get the same behaviour if you ln -s /tmp /tmpX and then do your examples exactly as typed? And ideally, can you do it without writing to /? mkdir -p test/tmp; cd test ln -s ./tmp t

[Bug 1372286] Re: unwanted space after directory completion (probably old cruft after upgrades)

2014-12-09 Thread latimerio
> Did you mean ln -s /tmp /tmpX ? Sorry. Yes I meant ln -s /tmp /tmpX. Thanks for pointing me to do tests as non root. I usually don't work on the desktop but only do admin tasks over ssh. We have a link /applics -> /nfs/AppServer/applics on all our clients. If I do as regular user: ls /appl

[Bug 1372286] Re: unwanted space after directory completion (probably old cruft after upgrades)

2014-12-09 Thread Peter Cordes
Oh forgot to mention, you can toggle programmable completion on or off with shopt -u progcomp# unset shopt -s progcomp# set Usually bash's builtin file/directory completion gets it right, and doesn't trip up on unusual characters in filenames (e.g. 'foo*' leads to problems with progcomp.)

[Bug 1372286] Re: unwanted space after directory completion (probably old cruft after upgrades)

2014-12-09 Thread Peter Cordes
ln -s /tmpX /tmpproduces: lrwxrwxrwx 1 peter peter 5 Dec 9 11:58 /tmp/tmpX -> /tmpX (a broken symlink) Did you mean ln -s /tmp /tmpX ? When cooking up a testcase, it's bad practice to make one that only works for root. mkdir -p test/tmp cd test ln -s ./tmp tmpX ls ./tmp[TAB] => tmp/

[Bug 1372286] Re: unwanted space after directory completion (probably old cruft after upgrades)

2014-12-09 Thread latimerio
another observation as an addon to my previous post (I'd liked to edit it but unfortunately I can't) less /tmpX # gives "less /tmpX/" on the same line type lv # gives "lv is /usr/bin/lv" lv /tmpX # gives "lv /tmpX " with a trailing space So it is suppose

[Bug 1372286] Re: unwanted space after directory completion (probably old cruft after upgrades)

2014-12-09 Thread latimerio
I have a freshly installed ubuntu 14.04.1 LTS and it also shows the problem. Thus I doubt that it a legacy package. I found that it occurs repeatable with symlinks and aliased commands as shown below TEST SCENARIO ln -s /tmpX /tmp alias ll='ls -l' ls /tmp # gives "tmp/" and "tmpX/"

[Bug 1372286] Re: unwanted space after directory completion (probably old cruft after upgrades)

2014-12-01 Thread Peter Cordes
Attached the full-fledged perl script I cooked up to investigate obsolete conffiles. grep the output, it doesn't take options. When removing them, it often leaves empty directories, so don't forget to remove them, too. (If they aren't owned by some other package... check with dlocate, or add sup

[Bug 1372286] Re: unwanted space after directory completion (probably old cruft after upgrades)

2014-11-30 Thread Peter Cordes
** Changed in: bash-completion (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1372286 Title: unwanted space after directory completion (probably old cr

[Bug 1372286] Re: unwanted space after directory completion (probably old cruft after upgrades)

2014-11-30 Thread Peter Cordes
update: be careful with obsolete conffiles. The same file can be obsolete in one package, but still be provided and non-obsolete in another package. e.g. I removed my /etc/bash_completion.d/mercurial, since my script found it, but it had moved from mercurial to mercurial- common, and is listed no

[Bug 1372286] Re: unwanted space after directory completion (probably old cruft after upgrades)

2014-11-29 Thread Peter Cordes
If we can figure out if there's one bad file that is commonly left lying around, and breaks things, a workaround can be shipped in bash- completion to blacklist it. I'm going to close any pre-trusty reports of this, since they're probably the acroread crap. And point those bugs to here. I editt

[Bug 1372286] Re: unwanted space after directory completion

2014-11-29 Thread Peter Cordes
This doesn't happen on a normal Trusty system, but yeah, there are similar reports of this happening to people. Must be some kind of leftover stuff from upgrades. My system has an upgrade chain going back to Edgy (6.10), but I keep it tidy with aptitude and other tools. You may have some cruft i

[Bug 1372286] Re: unwanted space after directory completion

2014-11-29 Thread Peter Cordes
** Summary changed: - tab bash-completion adds an unwanted space so path name expansion fails + unwanted space after directory completion -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1372286 Title: