[xorg-xinit] startx breaks if GREP_OPTIONS changes output format
Submitted by Cem Aydin
Assigned to Xorg Project Team
Description
This was reported on the Arch Linux bugtracker but it's an upstream issue, so I'm reporting it here.
I think appeared by the xinit git tag xinit-1.3.4 . I think would've been introduced by commit http://cgit.freedesktop.org/xorg/app/xinit/commit/?id=44915d6953076849b69a017f6fc8234b0f254362 .
- tty_num=
(echo "
tty" | grep -oE '[0-9]+$')
If GREP_OPTIONS has color=always set, then this uses coloured grep output, meaning $tty_num carries colour information in vtarg="vt$tty_num"
.
To resolve:
- tty_num=
(echo "
tty" | grep -oE '[0-9]+$')
- tty_num=
(echo "
tty" | grep --color=never -oE '[0-9]+$')
Some people reported a problem on the Arch Linux Forum: https://bbs.archlinux.org/viewtopic.php?id=186382
While it's not yet entirely sure that it's due to this issue I think it may well be.
An error that was posted there contains:
Command line argument number 4 contains unprintable characters
Thanks