Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 9 Sep 2012 21:47:12 +0200
From: Frank Dittrich <frank_dittrich@...mail.com>
To: john-dev@...ts.openwall.com
Subject: Re: bash completion on OSX

On 09/09/2012 07:55 PM, magnum wrote:
> On 7 Sep, 2012, at 0:23 , magnum <john.magnum@...hmail.com> wrote:
>> Thanks! Now it works. I also modded the makefile target for bash completion: Since we cannot use the environment variables pointing out the target directory (I still don't get why, it is supposed to work), we copy to any (all) *present* bash_completion.d directories in /etc, /usr/local/etc and /opt/local/etc. Unfortunately this also meant we will copy it regardless of if it's updated or not. Not a big deal.
> 
> It works, but not quite everything works. Rules completion and External mode completion works fine. Options completion (john --[TAB]) works fine.
> 
> But this does not work:
> 
> $ john -fo:[TAB]
> sed: 1: "p }
> ": extra characters at the end of p command
> 
> Instead of bugging you with OSX quirks (although it would be nice if we eventually get it generic enough), I first tried installed gnu sed from macports but this did not fix it. Instead, it now is totally quiet. I press TAB after "-fo:" and absolutely nothing happens.
> 
> I tried manually running what is in the script (with gnu sed):
> ../run/john | sed -n -e '/^--format/,$ {' -e 's#^--format=[ A-Za-z]*:##' -e '/^--/ b' -e 's#^ *##' -e 's#\<dynamic_n\>#dynamic#' -e 's#^\(.*\)$#\L\1#' -e 's#[/ ]#\n#g' -e 'p }'
> 
> ...and I do get the format list. I have no idea why it does not show up in completion.

Just a guess, because I can't even reproduce the problem:
Please try s/-e 'p }'/ -e 'p' -e '}'/
Under Linux, this still works. Hopefully it also works under OS X.

Frank

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.