Re: [Janitors] value could be NULL in config parser
- From
Christian Couder <chriscool@tuxfamily.org>
- Date
- Feb 9, 2008, 13:15 UTC
- Message-ID
- <200802091415.20295.chriscool@tuxfamily.org>
- In-Reply-To
- <200802091118.11174.chriscool@tuxfamily.org>
Le samedi 9 février 2008, Christian Couder a écrit :
Show 13 quoted lines
> Le samedi 9 février 2008, Govind Salinas a écrit :
> > I think I got all the erroneous ones. I did
> >
> > find . -name "*.c" | xargs grep git_config\( | awk '{ idx = index($2,
> > ")"); p = substr($2, 12, idx - 12); print p }' | sort | uniq -u
>
> It seems the "uniq -u" should be only "uniq".
> This way, you will also get the following ones to check:
>
> git_default_config
> git_diff_basic_config
> git_log_config
> git_pack_configI don't know awk so I cannot tell if there is something wrong with your script but with:
find . -name "*.c" | xargs perl -ne 'print "$1\n" if (m/git_config ? \(([^)]*)\)/)' | sort | uniq
I also get:
git_imap_config show_all_config
Thanks, Christian.