Skip to content

Commit 9a31c2b

Browse files
committed
xauth: use printf instead of echo #7
1 parent 13596cb commit 9a31c2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/bash
22
# runx: Provide an X server in Cygwin, MSYS2 or WSL.
33

4-
Version="v0.4.10"
4+
Version="v0.4.11"
55

66
usage() { # Usage information (--help)
77
echo "runx - Run Linux GUI applications on MS Windows.
@@ -514,8 +514,8 @@ setup_cookie() { # Generate X authentication cookie
514514
xauth -i -f "$Xclientcookie" add :$Newdisplaynumber . $(mcookie)
515515
# prepare cookie with localhost identification disabled by ffff. ffff means 'familiy wild'
516516
Cookie="$(xauth -i -f "$Xclientcookie" nlist | sed -e 's/^..../ffff/')"
517-
echo "$Cookie" | xauth -i -f "$Xclientcookie" nmerge -
518-
echo "$Cookie" | xauth -i -f "$Xservercookie" nmerge -
517+
printf "$Cookie" | xauth -i -f "$Xclientcookie" nmerge -
518+
printf "$Cookie" | xauth -i -f "$Xservercookie" nmerge -
519519

520520
verbose "Client cookie:
521521
$(xauth -v -f "$Xclientcookie" list)"

0 commit comments

Comments
 (0)