]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* autoconf.sh (translate_awk): `> "/dev/stderr"' is not portable
authorAkim Demaille <akim@epita.fr>
Sat, 25 Mar 2000 09:17:40 +0000 (09:17 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 25 Mar 2000 09:17:40 +0000 (09:17 +0000)
to systems without a real /dev/stderr in the file system or if not
using one of the three free awks.  Use
print message | "cat >&2"
...
END { close("cat >&2") }
From Aharon Robbins.

ChangeLog
autoconf.in
autoconf.sh
bin/autoconf.in

index ed5b9696ade2d3299ec4cb42f75b3295019905fe..e962ffe2f72f4f90b50e1f24530c35b82d04a016 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2000-03-25  Akim Demaille  <akim@epita.fr>
+
+       * autoconf.sh (translate_awk): `> "/dev/stderr"' is not portable
+       to systems without a real /dev/stderr in the file system or if not
+       using one of the three free awks.  Use
+       print message | "cat >&2"
+       ...
+       END { close("cat >&2") }
+       From Aharon Robbins.
+
 2000-03-25  Akim Demaille  <akim@epita.fr>
 
        * autoheader.sh (checking completeness): Be ready to recognize
index ccfaf80549646fad763e88a1345f9e92b9f7ac4a..bc329ff04613d1de846460ad79c155da335f4d9f 100644 (file)
@@ -352,7 +352,7 @@ function trans (arg, sep)
 
 function error (message)
 {
-  print message >"/dev/stderr"
+  print message | "cat >&2"
   exit 1
 }
 
@@ -409,6 +409,7 @@ END {
        res = res char
     }
   print res
+  close("cat >&2")
 }
 EOF
   # Extract both the m4 program and the m4 options from TRACES.
index ccfaf80549646fad763e88a1345f9e92b9f7ac4a..bc329ff04613d1de846460ad79c155da335f4d9f 100644 (file)
@@ -352,7 +352,7 @@ function trans (arg, sep)
 
 function error (message)
 {
-  print message >"/dev/stderr"
+  print message | "cat >&2"
   exit 1
 }
 
@@ -409,6 +409,7 @@ END {
        res = res char
     }
   print res
+  close("cat >&2")
 }
 EOF
   # Extract both the m4 program and the m4 options from TRACES.
index ccfaf80549646fad763e88a1345f9e92b9f7ac4a..bc329ff04613d1de846460ad79c155da335f4d9f 100644 (file)
@@ -352,7 +352,7 @@ function trans (arg, sep)
 
 function error (message)
 {
-  print message >"/dev/stderr"
+  print message | "cat >&2"
   exit 1
 }
 
@@ -409,6 +409,7 @@ END {
        res = res char
     }
   print res
+  close("cat >&2")
 }
 EOF
   # Extract both the m4 program and the m4 options from TRACES.