Skip to content

Commit 101528b

Browse files
committed
escape $@ in message #7
1 parent c57208b commit 101528b

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.20"
4+
Version="v0.4.21"
55

66
usage() { # Usage information (--help)
77
echo "runx - Run Linux GUI applications on MS Windows.
@@ -519,7 +519,7 @@ setup_cookie() { # Generate X authentication cookie
519519
[ -x "$Xauthbin" ] && [ "$Winsubsystem" = "MSYS2" ] && [ ! -x /usr/X11R6/bin/xauth ] && note "If you want to use 'ssh -X' in MSYS2, you might need
520520
to create an executeable script /usr/X11R6/bin/xauth with the content:
521521
#! /bin/bash
522-
$(escapestring "$Xauthbin") \"$@\"
522+
$(escapestring "$Xauthbin") \"\$@\"
523523
"
524524

525525
[ -x "$Xauthbin" ] && {
@@ -541,7 +541,7 @@ $(escapestring "$Xauthbin") \"$@\"
541541
rm $Xcookie.tmp
542542
}
543543
}
544-
start_xserver() { # run X
544+
start_xserver() { # Run X
545545
check_xserver
546546
generate_xcommand
547547
[ "$Xauthentication" = "yes" ] && setup_cookie

0 commit comments

Comments
 (0)