X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=blobdiff_plain;f=pxboard;h=3a2a97a240e9c39260ad1297cf1160d049c999d5;hp=ff7f196b7887922457cd79a0f8c90ff7e30b7c0a;hb=c0bcf53dc4abc3fc4001252c734b926765598837;hpb=05bc30b15e31c427ce208495a889e9ff36e6642b diff --git a/pxboard b/pxboard old mode 100755 new mode 100644 index ff7f196..3a2a97a --- a/pxboard +++ b/pxboard @@ -16,6 +16,6 @@ # The script turns on -noChessProgram mode by default. If you want a # chess program started, give the -xncp option. # -tmp=/tmp/pxboard$$ -cat > $tmp -(xboard -ncp -lgf $tmp $* ; rm $tmp) & +tmp=`mktemp "${TMPDIR:-/tmp}/pxboard.$$.XXXXXX"` || exit 1 +cat > "$tmp" +( xboard -ncp -lgf "$tmp" "$@" ; rm "$tmp" ) &