diff options
author | Arthur Williams <taaparthur@gmail.com> | 2021-06-04 21:44:03 -0700 |
---|---|---|
committer | Arthur Williams <taaparthur@gmail.com> | 2021-06-04 21:44:03 -0700 |
commit | bdf2af54a800470990a66d11b14589e19fa568ac (patch) | |
tree | 0383d760e172a2e2d44117e434af3c04015a735c /startx.cpp | |
parent | ae77976adaae9948e3e8d7a673dc88df4e31de46 (diff) |
Remove non-portable grep usage from startx
startx uses non-portable grep flags (-o). grep isn't even needed for
this and has been replaced with substring removal.
Closes #6
Diffstat (limited to 'startx.cpp')
-rw-r--r-- | startx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |