<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 2016年02月24日 01:10, Burton, Ross
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJTo0Lbs50h0=46rp2ZV6cv=OgcyBCpfPJh6nvhEFB8HpMQzsA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On 23 February 2016 at 17:01, Burton,
            Ross <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div class="gmail_extra">The *amazing* BB_VERBOSE_LOGS
                option (set to 1 in local.conf to get all shell scripts
                to do set -x) tells me this is due to missing quotes
                around the opts assignment:</div>
            </blockquote>
          </div>
          <br>
          Why do some of the opts assignments just do opts=$2, and
          others do a sed?</div>
      </div>
    </blockquote>
    <br>
    In the previous version, there are:<br>
    <br>
    local opts="$2"<br>
    ...<br>
    <pre wrap="">opts=`echo $opts | sed s/\'/\"/g`

And I want to refactor them but lost the double quotes.

Only do sed operations for useradd and groupadd that they may be passed in "opts" with space but others didn't.

I'll restore to previous version.
</pre>
    Sorry for inconvenience that I built pass on Ubuntu 14.04 so didn't
    find this error.<br>
    <br>
    --Kai<br>
    <br>
    <blockquote
cite="mid:CAJTo0Lbs50h0=46rp2ZV6cv=OgcyBCpfPJh6nvhEFB8HpMQzsA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">Ross</div>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Regards,
Neil | Kai Kang</pre>
  </body>
</html>