]> granicus.if.org Git - yasm/commitdiff
Fix #184: test -e is not portable (despite being in POSIX); use test -f instead.
authorPeter Johnson <peter@tortall.net>
Thu, 30 Jul 2009 02:19:38 +0000 (02:19 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 30 Jul 2009 02:19:38 +0000 (02:19 -0000)
svn path=/trunk/yasm/; revision=2226

modules/objfmts/bin/tests/multisect/bin_multi_test.sh
modules/preprocs/yapp/tests/yapp_test.sh
out_test.sh

index 1c42dabea966d4b505e76d13cb2ec35535cffde0..acf6ae7c0ee0d04f92237e9980f45463301a385b 100755 (executable)
@@ -31,7 +31,7 @@ do
     eg=`echo ${asm} | sed 's,.asm$,.errwarn,'`
     m=${a}.map
     mg=`echo ${asm} | sed 's,.asm$,.map,'`
-    if test \! -e ${eg}; then
+    if test \! -f ${eg}; then
         eg=/dev/null
     fi
 
index 531438503ddc82f10045973a47a351bd85c04026..4753b69dc673fc64f072df318ac07e854ecebc54 100755 (executable)
@@ -29,7 +29,7 @@ do
     og=`echo ${asm} | sed 's,.asm$,.pre,'`
     e=${a}.ew
     eg=`echo ${asm} | sed 's,.asm$,.errwarn,'`
-    if test \! -e ${eg}; then
+    if test \! -f ${eg}; then
        eg=/dev/null
     fi
 
index 93acbfba04769107c1518cef8a394e7abac0083d..2c9ad65d5d250a575e1e5b50dfe98e5b04eb705b 100755 (executable)
@@ -29,7 +29,7 @@ do
     og=`echo ${asm} | sed 's,.asm$,.hex,'`
     e=${a}.ew
     eg=`echo ${asm} | sed 's,.asm$,.errwarn,'`
-    if test \! -e ${eg}; then
+    if test \! -f ${eg}; then
         eg=/dev/null
     fi