Re: [OE-core] another cleanup: "grep ... >/dev/null" -> "grep -q"?

2017-03-27 Thread Burton, Ross
On 25 March 2017 at 19:22, Robert P. J. Day wrote: > 1) can most of those be simplified with "grep -q"? > Yes. > 2) is there any need for "egrep" in that last match? > egrep is grep -E, but that regex is a valid basic RE, so that can just be grep. Ross --

[OE-core] another cleanup: "grep ... >/dev/null" -> "grep -q"?

2017-03-25 Thread Robert P. J. Day
something else that grates on me: $ grep "grep.*/dev/null" * autotools.bbclass: if grep "^[[:space:]]*AM_GLIB_GNU_GETTEXT" $CONFIGURE_AC >/dev/null; then autotools.bbclass: if grep "sed.*POTFILES" $CONFIGURE_AC >/dev/null; then autotools.bbclass: