[OE-core] [PATCH] classes: Standardize strings tests, and join some if/then/while/do lines
Robert P. J. Day
rpjday at crashcourse.ca
Tue Mar 28 12:18:53 UTC 2017
On Tue, 28 Mar 2017, Burton, Ross wrote:
>
> On 28 March 2017 at 11:50, Robert P. J. Day <rpjday at crashcourse.ca> wrote:
> gconf_postinst() {
> -if [ "x$D" != "x" ]; then
> +if [ -n "${D}" ]; then
>
>
> This totally changes how the postinst behaves. I'll leave
> understanding how as an exercise to the reader. :)
ok, i thought i knew what you meant but now, i'm just drawing a
blank. in what way is that not testing for a non-empty string as the
value of D? what painfully obvious clue am i missing?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
More information about the Openembedded-core
mailing list