[Bug 1095180] Re: incorrect bash-completion for sudo

2014-11-29 Thread Peter Cordes
It's a corner case of a directory in the current directory having the
same name as a command.  The directory entry is superseding the command
completion.

 If you  sudo ettab  you get a list of completions.  In /etc, the only
entry for etckeeper is with a trailing /, rather than having an entry
for the command AND an entry for the directory.  If you are cded to
somewhere without an etckeeper directory present, etckeeper is fine.

 This happens with completion for any commands flagged to take another command 
as their first argument.  simple testcase:
mkdir apt-g{,et}
nice apt-gtab  =  lists apt-g/   apt-get/
nice apt-getab = nice apt-get/

Probably fixable without disabling completing filenames as a fallback,
IDK.  _command_offset() is pretty complex, I'm prob. not going to try to
fix it myself.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion for sudo

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1095180] Re: incorrect bash-completion for sudo

2014-11-29 Thread Peter Cordes
The bug is in the core code of bash_completion, in the functions that
handle commands that take other commands as their arguments, e.g. sudo,
nice, and so on.  Marked invalid for the etckeeper package, but still
confirmed for bash-completion.  (I hope I'm doing this right.  If
there's a way to un-assign it from etckeeper altogether, that would be
best).

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion for sudo

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1095180] Re: incorrect bash-completion for sudo

2014-11-29 Thread Peter Cordes
reported upstream as
https://alioth.debian.org/tracker/index.php?func=detailaid=314893group_id=100114atid=413095


** Bug watch added: alioth.debian.org/ #314893
   http://alioth.debian.org/support/tracker.php?aid=314893

** Changed in: etckeeper (Ubuntu)
   Status: Confirmed = Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion for sudo

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1095180] Re: incorrect bash-completion

2014-10-29 Thread Rolf Leggewie
Thanks, Thomas. Still the same in trusty.

** Summary changed:

- incorrect bash-completion
+ incorrect bash-completion for sudo

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion for sudo

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1095180] Re: incorrect bash-completion for sudo

2014-10-29 Thread Rolf Leggewie
** Changed in: bash-completion (Ubuntu)
   Status: New = Confirmed

** Tags added: trusty

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion for sudo

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1095180] Re: incorrect bash-completion

2013-01-09 Thread Thomas Ward
** Changed in: etckeeper (Ubuntu)
   Importance: Undecided = Low

** Changed in: bash-completion (Ubuntu)
   Importance: Undecided = Low

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1095180] Re: incorrect bash-completion

2013-01-08 Thread Thomas Ward
** Also affects: bash-completion (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1095180] Re: incorrect bash-completion

2013-01-04 Thread Rolf Leggewie
Thank you for having a look at the ticket, Thomas.  As stated in the
original bug report, my system runs precise.  I have the latest package
of etckeeper from precise installed which happens to be 0.61ubuntu2.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1095180/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1095180] Re: incorrect bash-completion

2013-01-04 Thread Thomas Ward
Thanks for providing the additional information!

I've added the information you provided in Comment #3 to the bug
description, tagged the bug as Precise, and returned the bug status
back to New so someone can try and confirm this.

I would suggest that in future you use this command when filing a bug:
ubuntu-bug [package]

This will add important information such as the release you're using,
the version of the package, and other information that could be useful
for triagers and developers.

--
Thomas Ward
Ubuntu BugSquad Member

** Tags added: precise

** Description changed:

  bash-completion in precise is faulty
  
  $ cd /etc
  $ sudo etckeTAB
  
  that completes to
  
  $ sudo etckeeper/
  
  when it should complete only to
  
  $ sudo etckeeper
+ 
+ --
+ Notes from comments:
+ 
+ Release: Ubuntu Precise 12.04
+ Package Version: etckeeper 0.61ubuntu2

** Changed in: etckeeper (Ubuntu)
   Status: Incomplete = New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1095180/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1095180] Re: incorrect bash-completion

2013-01-04 Thread Thomas Ward
Okay, so I spun up a VM for Lubuntu 12.04, and dropped it into tty mode.

After installing etckeeper (sudo apt-get install etckeeper) after
updating the packages, I can confirm this issue happens on Precise.

I can also reproduce this with Quantal.


But there's specific information here that I think needs to be added:  the bash 
completion of just etcke[TAB] *correctly* tabcompletes as 'etckeeper'.  This is 
in both user-space terminal logins as well as root logins, confirmed in both 
12.04 and 12.10.

I don't have a spare Raring VM to test with, so I'm going to spin one up
and see if I can confirm it there.

Adding 'quantal' tag, and marking confirmed in the meantime.

** Changed in: etckeeper (Ubuntu)
   Status: New = Confirmed

** Tags added: quantal

** Description changed:

  bash-completion in precise is faulty
  
  $ cd /etc
  $ sudo etckeTAB
  
  that completes to
  
  $ sudo etckeeper/
  
  when it should complete only to
  
  $ sudo etckeeper
  
  --
  Notes from comments:
  
+ Original report:
  Release: Ubuntu Precise 12.04
  Package Version: etckeeper 0.61ubuntu2
+ 
+ Additionally confirmed on (by teward):
+ Release: Ubuntu Quantal 12.10
+ Package Version: etckeeper 0.61ubuntu2

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1095180/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1095180] Re: incorrect bash-completion

2013-01-04 Thread Thomas Ward
Also confirmed in Raring.  Although, the same Additional details I
added in Comment #5 are still valid.  Perhaps this is an issue with how
'sudo' affects bash completion?

Adding 'raring'  tags, and nominating against Precise and Quantal.

** Tags added: raring

** Description changed:

  bash-completion in precise is faulty
  
  $ cd /etc
  $ sudo etckeTAB
  
  that completes to
  
  $ sudo etckeeper/
  
  when it should complete only to
  
  $ sudo etckeeper
  
  --
  Notes from comments:
  
  Original report:
  Release: Ubuntu Precise 12.04
  Package Version: etckeeper 0.61ubuntu2
  
  Additionally confirmed on (by teward):
  Release: Ubuntu Quantal 12.10
  Package Version: etckeeper 0.61ubuntu2
+ 
+ Additionally confirmed on (by teward):
+ Release: Ubuntu Raring 13.04 - Daily Image from 2013-01-04
+ Package Version: etckeeper 0.61ubuntu2

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1095180/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1095180] Re: incorrect bash-completion

2013-01-02 Thread Rolf Leggewie
** Description changed:

  bash-completion in precise is faulty
  
  $ cd /etc
- $ sudo git etckeTAB
+ $ sudo etckeTAB
  
  that completes to
  
- $ sudo git etckeeper/
+ $ sudo etckeeper/
  
  when it should complete only to
  
  $ sudo git etckeeper

** Description changed:

  bash-completion in precise is faulty
  
  $ cd /etc
  $ sudo etckeTAB
  
  that completes to
  
  $ sudo etckeeper/
  
  when it should complete only to
  
- $ sudo git etckeeper
+ $ sudo etckeeper

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1095180/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1095180] Re: incorrect bash-completion

2013-01-02 Thread Thomas Ward
Hello, and thanks for reporting your bug!

We need a little bit more information from you about the system and what
version of the software you are using.

Can you please include the output of `lsb_release -a` (which will tell
us which version of Ubuntu you are using) and `dpkg -l etckeeper\*`
(which will tell us which version of etckeeper you are using) to your
bug as a comment?

--
Thomas Ward
BugSquad Member

** Changed in: etckeeper (Ubuntu)
   Status: New = Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1095180/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1095180] Re: incorrect bash-completion

2013-01-01 Thread Rolf Leggewie
another example

$ man etckeTAB
etckeeper/ etckeeper/

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1095180

Title:
  incorrect bash-completion

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1095180/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs