[Buildroot] [PATCH 1/4] sysv init scripts: fix == bashism

Gustavo Zacarias gustavo at zacarias.com.ar
Tue Nov 11 13:12:56 UTC 2014


On 10/26/2014 02:41 PM, André Erdmann wrote:

> test a == b is not available in e.g. dash.
> 
> Command(s) used for editing:
> 
>   q=\[\"\'\]
>   operand="${q}?[$]?[a-zA-Z0-9_\?]+${q}?"  ## doesn't detect ${VAR}
>   test_expr="(\[\s+${operand}\s+)==(\s+${operand}\s+\])"
> 
>   find . -type f -name '[SK][0-9][0-9]*' | \
>      xargs sed -r -e "s@${test_expr}@\1=\2 at g" -i
> 
> Signed-off-by: André Erdmann <dywi at mailerd.de>

Acked-by: Gustavo Zacarias <gustavo at zacarias.com.ar>





More information about the buildroot mailing list