Skip to content

Commit

Permalink
escape $@ in message #7
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Aug 19, 2022
1 parent c57208b commit 101528b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /bin/bash
# runx: Provide an X server in Cygwin, MSYS2 or WSL.

Version="v0.4.20"
Version="v0.4.21"

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

[ -x "$Xauthbin" ] && {
Expand All @@ -541,7 +541,7 @@ $(escapestring "$Xauthbin") \"$@\"
rm $Xcookie.tmp
}
}
start_xserver() { # run X
start_xserver() { # Run X
check_xserver
generate_xcommand
[ "$Xauthentication" = "yes" ] && setup_cookie
Expand Down

0 comments on commit 101528b

Please sign in to comment.