Revision: 77203
http://sourceforge.net/p/brlcad/code/77203
Author: brlcad
Date: 2020-09-23 21:31:46 +0000 (Wed, 23 Sep 2020)
Log Message:
-----------
try the inverse, detecting if NUL appears to work as a special device.
Modified Paths:
--------------
brlcad/trunk/bench/run.sh
Modified: brlcad/trunk/bench/run.sh
===================================================================
--- brlcad/trunk/bench/run.sh 2020-09-23 20:32:12 UTC (rev 77202)
+++ brlcad/trunk/bench/run.sh 2020-09-23 21:31:46 UTC (rev 77203)
@@ -72,10 +72,19 @@
export MSYS_NO_PATHCONV=1 MSYS2_ARG_CONV_EXCL="\*"
# Windows has a special NUL device instead of /dev/null
-if test -e /dev/null ; then
+if test -f NUL ; then
+ echo "INTERNAL ERROR: NUL file is in the way (delete it)"
+ exit 1
+fi
+out=`cat NUL 2>&1`
+ret=$?
+if test "x$ret" = "x0" ; then
+ export NUL=NUL
+elif test -e /dev/null ; then
export NUL=/dev/null
else
- export NUL=NUL
+ echo "INTERNAL ERROR: cannot determine a suitable null device"
+ exit 1
fi
# commands that this script expects
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits