bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash-2.05 breaks autoconf-2.50


From: Adam J. Richter
Subject: bash-2.05 breaks autoconf-2.50
Date: Sat, 2 Jun 2001 15:38:50 -0700

        autoconf-2.50 needs to be able to do the shell command
"source /dev/null" (autoconf-2.50/acgeneral.m4, does "cache_file=/dev/null"
and elsewhere defines AC_CACHE_LOAD to source $cache_file, which ltconfig
also does).  Strangely, bash is apparently crippled to prevent this.  Here
is a patch removing the crippling code.  Is there some posix standard that
forbids "source /dev/null"?

-- 
Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com     \ /                  San Jose, California 95129-1034
+1 408 261-6630         | g g d r a s i l   United States of America
fax +1 408 261-6631      "Free Software For The Rest Of Us."

--tThc/1wpZn/ma/RB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="bash.diffs"

--- bash-2.05/builtins/evalfile.c       Wed Feb 14 14:05:16 2001
+++ bash/builtins/evalfile.c    Sat Jun  2 12:28:27 2001
@@ -104,11 +104,6 @@
       (*errfunc) ("%s: is a directory", filename);
       return ((flags & FEVAL_BUILTIN) ? EXECUTION_FAILURE : -1);
     }
-  else if (S_ISREG (finfo.st_mode) == 0)
-    {
-      (*errfunc) ("%s: not a regular file", filename);
-      return ((flags & FEVAL_BUILTIN) ? EXECUTION_FAILURE : -1);
-    }
 
   file_size = (size_t)finfo.st_size;
   /* Check for overflow with large files. */

--tThc/1wpZn/ma/RB--




reply via email to

[Prev in Thread] Current Thread [Next in Thread]