<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 14-04-07 07:42 AM, James Cloos
      wrote:<br>
    </div>
    <blockquote cite="mid:m361mlnz51.fsf@carbon.jhcloos.org" type="cite">
      <pre wrap="">But re commit 44915d6953076, 

HG>          tty_num=$(echo "$tty" | grep -oE '[0-9]+$')

Is grep -o available everwhere startx(1) runs?

The posix page, grep.1p, does not mention -o.

It looks like each of the BSDs have adopted it, but only midstream
(eg, its documented in OpenBSD 5.0, but not in 4.9).
</pre>
    </blockquote>
    I looked in the autoconf manual:<br>
    <blockquote><a class="moz-txt-link-freetext" href="http://www.gnu.org/software/autoconf/manual/autoconf.html#grep">http://www.gnu.org/software/autoconf/manual/autoconf.html#grep</a><br>
    </blockquote>
    <blockquote><tt>"Portable scripts can rely on the </tt><samp><span
          class="command">grep</span></samp><tt> options </tt><samp><span
          class="option">-c</span></samp><tt>,
      </tt><samp><span class="option">-l</span></samp><tt>, </tt><samp><span
          class="option">-n</span></samp><tt>, and </tt><samp><span
          class="option">-v</span></samp><tt>, but should avoid other
        options</tt>"<br>
      <br>
    </blockquote>
    <br>
  </body>
</html>