[PATCH xinit] startx: Pass vtX as long as the user did not specify one

James Cloos cloos at jhcloos.com
Mon Apr 7 04:42:57 PDT 2014


>>>>> "HG" == Hans de Goede <hdegoede at redhat.com> writes:

HG> Instead always pass the vtX argument, except when the user has specified its
HG> own vtX argument. Note that vtX still only gets added for the default server,
HG> since for ie Xnest or Xephyr it makes no sense.

Reviewed-by: James Cloos <cloos at jhcloos.com>

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).

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


More information about the xorg-devel mailing list