El dom, 26-02-2006 a las 01:40 +0100, Ian Macdonald escribió:
> 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.

That was easy. Could you please forward this bug to the file-rc package?
The bug is in the completion file it installs.

I think the bug lies in that using sudo shifts the position of the
script arguments by (at least) one to the right. The file-rc script
contains absolute references to its parameters, thus fails to address
the ones it expects.

Thanks!
-- 
Javier Kohen <[EMAIL PROTECTED]>
ICQ: blashyrkh #2361802
Jabber: [EMAIL PROTECTED]

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

Reply via email to