Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 15 Dec 2012 13:44:07 +0100
From: Frank Dittrich <frank_dittrich@...mail.com>
To: john-dev@...ts.openwall.com
Subject: Re: bash completion failures

On 12/15/2012 01:20 PM, magnum wrote:
> No hidden options work, other things work correctly. If I just write "../run/john --[tab][tab]" I also get a list lacking the hiddens.

Now I am able to reproduce.

I always started john from the run directory and used ./john.
If I move to the src directory and use ../run/john, completion for
hidden options doesn't work.

Now I found the culprit in line 142 of the script.
Here I concatenate the options from the regular usage output and the
output of --list=hidden-options.
But instead of the name that is used to invoke john, I use "./john" for
--list=hidden-options.
This needs to be replaced by  ${first}
Otherwise completion only works as long as you are in the run directory
and as long as the binary is called john.

Feel free to correct this or wait until I submit a patch.

Frank

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ