[U-Boot] [PATCH v2 2/4] kconfig: fix whitespace handling bug of savedefconfig

Masahiro YAMADA yamada.m at jp.panasonic.com
Thu Sep 4 15:10:50 CEST 2014


Hi Simon,

2014-09-04 8:49 GMT+09:00 Simon Glass <sjg at chromium.org>:
> Hi Masahiro,
>
> On 3 September 2014 14:41, Masahiro Yamada <yamada.m at jp.panasonic.com> wrote:
>> Commit 3ff291f371fa9858426774f3732924bacb61ed1c
>> (kconfig: convert Kconfig helper script into a shell script)
>> introduced another regression.
>>
>> Shell usually handles whitespaces as separators,
>> so "make saveconfig" outputs
>>
>>   # CONFIG_FOO is not set
>>
>> into:
>>
>>   #
>>   CONFIG_FOO
>>   is
>>   not
>>   set
>>
>> Whitespaces should not be treated as separators here.
>
> Oh dear...python is so much better at dealing with parameters and strings.
>

Shell script is much more difficult than Python (and Perl)
for text processing.

This is really unfortunate...


-- 
Best Regards
Masahiro Yamada


More information about the U-Boot mailing list