[PATCH 1/2] defaultenv-2: Select CMD_ECHO & CMD_ECHO_E by default

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Fri Oct 12 07:22:07 EDT 2012


On 15:16 Fri 12 Oct     , Alexander Shiyan wrote:
> Fri, 12 Oct 2012 11:24:08 +0200 от Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>:
> > On 10:50 Fri 12 Oct     , Alexander Shiyan wrote:
> > > Command is used in the scripts and it should be compiled in.
> > > 
> > > Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
> > > ---
> > >  common/Kconfig |    2 ++
> > >  1 files changed, 2 insertions(+), 0 deletions(-)
> > > 
> > > diff --git a/common/Kconfig b/common/Kconfig
> > > index 9210739..2783405 100644
> > > --- a/common/Kconfig
> > > +++ b/common/Kconfig
> > > @@ -564,6 +564,8 @@ config DEFAULT_ENVIRONMENT_GENERIC_NEW
> > >  	select CMD_GLOBAL
> > >  	select CMD_AUTOMOUNT
> > >  	select CMD_BASENAME
> > > +	select CMD_ECHO
> > > +	select CMD_ECHO_E
> > ECHO_E need to be optionnal as you may not want the color support
> 
> For example, command below is not work properly without this option:
> echo -e -n "\nHit any key to stop autoboot: "
> shows as:
> 
> running /env/bin/init...
> \nHit any key to stop autoboot:  0
> ^^
> 
> and with CMD_ECHO_E option result is normal:
no -e is ignored if CMD_ECHO_E is not enabled I put this

asn need to be keep that way

so fix hit with an empty echo not by forcing -e

Best Regards,
J.



More information about the barebox mailing list