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 tmpX
 so I don't have to sudo every time I want to create your testcase, or clean up 
my system.  This is what I meant by a testcase that works for non-root.

 If this is only reproducible with absolute paths starting with /, then
that might be a clue to something.  I don't *think* mountpoints should
come into this, but I can't reproduce this on my system.  Does root on
your system have anything different in /root/.bashrc?  (or
/root/.profile, if you're in a login shell as root).

 This space-appended behaviour is exactly what's supposed to happen for
a broken symlink, so I still think something about your testcase is
probably weird.  You're not doing completions in a different context
than the command will run, are you?  like complete on one computer a
command that you'll run on another with ssh?

 I know you probably didn't do anything silly like that, but I'm
grasping at straws here.

Prob best if you can just capture some info to upload, from the shell
that's behaving badly:

set > shell_defs.log   # capture all your shell function definitions

set -x
ll /applics[TAB]    # will spew hundreds of lines of shell code tracing
set +x
complete -p ls ll
ls -dl /applics /nfs/AppServer/applics

copy/paste that output to a file.  (or do the above after running
script.  Yes, a program called script, it logs interactive sessions,
default filename is typescript.)

 Err on the side of pasting more stuff, because so far this doesn't make
sense.

-- 
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 cruft after
  upgrades)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1372286/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to