Re: [PATCH] use bash instead of sh to run mkcompile_h

From: Masahiro Yamada
Date: Thu Dec 26 2019 - 04:26:05 EST


On Wed, Dec 25, 2019 at 2:58 PM Liangcai Fan <fanliangcai9@xxxxxxxxx> wrote:
>
> From: Liangcai Fan <liangcai.fan@xxxxxxxxxx>
>
> Use sh to run mkcompile_h, compilation would fail if whoami contains
> backslash, since sh uses dash. The reason is that the echo command would
> interpret backslash to escapes, so the LINUX_COMPILE_BY definition was
> incorrect.
>
> Parse mkcompile_h with bash, the echo command would not see backslash as
> escapes, then there is no error with the definition of LINUX_COMPILE_BY.
>
> Signed-off-by: Liangcai Fan <liangcai.fan@xxxxxxxxxx>
> Signed-off-by: Liangcai Fan <fanliangcai9@xxxxxxxxx>
> ---

This problem was fixed by
commit c8f3dea90e38194dae542c5d56e05d30447e58cb



--
Best Regards
Masahiro Yamada