On 14-04-07 07:42 AM, James Cloos wrote:
> 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).
I looked in the autoconf manual:
http://www.gnu.org/software/autoconf/manual/autoconf.html#grep
"Portable scripts can rely on the grepoptions -c, -l, -n, and -v,
but should avoid other options"
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel