Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jul 2017 14:44:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 220668] x11/xinit: Incorrectly calculates $displayname used by xauth
Message-ID:  <bug-220668-7141-a1Sa58aQ8F@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-220668-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-220668-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220668

--- Comment #9 from Vladimir Kondratyev <wulf@freebsd.org> ---
(In reply to Matthew Rezny from comment #8)
> There is an upstream commit which corrects the syntax in both regards (re=
moves match and use of ERE syntax) but neglects the guard parenthesis.

If I run startx with -nolisten tcp option and without parenthesis applied I=
 get
following error as expr treats -nolisten as own option:

$ /usr/local/bin/startx -- -nolisten tcp
expr: illegal option -- n
expr: usage: expr [-e] expression

This error is harmless but I dislike the message.
Other way to fix it is to place "x" before both string and regex:

if expr "x$i" : '^xvt[0-9]\+$'

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220668-7141-a1Sa58aQ8F>