Commit ea62ca74 authored by jkuzeja's avatar jkuzeja

Removed the extra space before "-auth" in the regexp for FindDisplay, which...

Removed the extra space before "-auth" in the regexp for FindDisplay, which was causing the sed command to fail.  That failure then made xa null and that made line 305 \" if [ -f $xa -a -r $xa ]; then \" choke, giving this message:

/tmp/fd.4zomKO: 305: [: -a: unexpected operator
parent 7b9fc019
......@@ -1057,7 +1057,7 @@ char find_display[] =
"#\n"
"if [ \"X$FD_XDM\" != \"X\" ]; then\n"
" list=\"\"\n"
" for pair in `echo \"$psout\" | grep '/X.* :[0-9][0-9]* .*-auth' | egrep -v 'startx|xinit' | sed -e 's,^.*/X.* \\(:[0-9][0-9]*\\) .* -auth \\([^ ][^ ]*\\).*$,\\1\\,\\2,' | sort -u`\n"
" for pair in `echo \"$psout\" | grep '/X.* :[0-9][0-9]* .*-auth' | egrep -v 'startx|xinit' | sed -e 's,^.*/X.* \\(:[0-9][0-9]*\\) .*-auth \\([^ ][^ ]*\\).*$,\\1\\,\\2,' | sort -u`\n"
" do\n"
" da=`echo \"$pair\" | awk -F, '{print $1}'`\n"
" xa=`echo \"$pair\" | awk -F, '{print $2}'`\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment