On Sat 25 Feb 2006 at 21:21:01 -0300, you wrote:

> El dom, 26-02-2006 a las 01:16 +0100, Ian Macdonald escribió:
> > On Mon 05 Sep 2005 at 14:21:56 +0200, you wrote:
> >  
> > > Trying to complete on "sudo invoke-rc.d" causes the following error
> > > messages to be displayed:
> > > 
> > > [EMAIL PROTECTED]:~$ sudo invoke-rc.d basename: too few arguments
> > > Try `basename --help' for more information.
> > > bash: [: ==: unary operator expected
> > > basename: too few arguments
> > > Try `basename --help' for more information.
> > > bash: [: ==: unary operator expected
> > > 
> > > Plainly completing on invoke-rc.d doesn't cause this problem, same for
> > > sudo with other commands (xine, ls, synaptic, etc.).
> > 
> > I can't reproduce this here. sudo's completion function doesn't even use
> > basename. In fact, none of the completion functions do.
> 
> I see... I'm not familiar with the completion system. Any ideas on how
> to start debugging this will be very appreciated.

Try 'set -x' before attempting the tab completion. The output should
make reasonably clear where the call to basename is coming from.

Ian
-- 
Ian Macdonald               | <Overfiend> we're calling 2.2 POTATO?? 
[EMAIL PROTECTED]             | 
http://www.caliban.org/     | 
                            | 
                            | 

Reply via email to