These are the changes I had made in my source tree between 4.2.6 and
[xboard.git] / pxboard
diff --git a/pxboard b/pxboard
index ff7f196..3a2a97a 100755 (executable)
--- 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" ) &