summaryrefslogtreecommitdiff
path: root/startx.cpp
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2022-03-07 13:58:07 +0100
committerMatthieu Herrb <matthieu@herrb.eu>2022-03-07 13:58:07 +0100
commit39c20b52adadd0df0abf6241b6282e1ad5ebdac6 (patch)
treef97e0f979bf7fd2067fe6554ef16d764196cfc35 /startx.cpp
parentd5a136c4fa562d66efd7d20bf2ba40d1a62439fa (diff)
parent71a8997cad602ef0adc9fed110e8a04d2a8fc8dc (diff)
Merge remote-tracking branch 'origin/master' into obsd
Diffstat (limited to 'startx.cpp')
-rw-r--r--startx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/startx.cpp b/startx.cpp
index a3c5fd2..fab705c 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -206,7 +206,7 @@ if [ x"$server" = x ]; then
XCOMM "https://bugzilla.redhat.com/show_bug.cgi?id=806491"
tty=$(tty)
if expr "$tty" : '/dev/tty[0-9][0-9]*$' > /dev/null; then
- tty_num=$(echo "$tty" | grep -oE '[0-9]+$')
+ tty_num=${tty#/dev/tty}
vtarg="vt$tty_num -keeptty"
fi
#endif