Work around yet another really horrible Ultrix sh bug. The values of
authorTheodore Tso <tytso@mit.edu>
Tue, 20 Dec 1994 00:42:41 +0000 (00:42 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 20 Dec 1994 00:42:41 +0000 (00:42 +0000)
variables read in using the ${var='bar'} construction are displayed
using the "set" command with the high bit set.  (Someone should just
haul off the Ultrix sh and have it shot).  Fixed using tr.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4738 dc483132-0cff-0310-8789-dd5450dbe970

src/util/autoconf/ChangeLog
src/util/autoconf/acgeneral.m4

index 1b333a85cfd4fcff98d3143f339d04fa956aa15b..d11ac7d83579e359319d3dcd433740b3c51e4059 100644 (file)
@@ -1,3 +1,12 @@
+Mon Dec 19 19:20:58 1994  Theodore Y. Ts'o  (tytso at tsx-11)
+
+       * acgeneral.m4 (AC_CACHE_SAVE): Work around yet another really
+               horrible Ultrix sh bug.  The values of variables read in
+               using the ${var='bar'} construction are displayed using
+               the "set" command with the high bit set.  (Someone should
+               just haul off the Ultrix sh and have it shot).  Fixed
+               using tr.
+
 Fri Nov  4 09:08:33 1994  David J. MacKenzie  <djm@duality.gnu.ai.mit.edu>
 
        * Version 2.1.
index 215e9e72c5f69f8708c365eb4750a1a7df9f2b3a..24ec21b482bc90eeef753c497a818f3e7e77aa73 100644 (file)
@@ -902,7 +902,9 @@ EOF
 changequote(, )dnl
 dnl Allow a site initialization script to override cache values.
 # Ultrix sh set writes to stderr and can't be redirected directly.
-(set) 2>&1 |
+# Ultrix sh set also returns variables that were read in from the config file
+# with their high bit set.
+(set) 2>&1 | tr '\201-\377' '\001-\177' |
   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
   >> $cache_file
 changequote([, ])dnl